Find the answer to your Linux question:
Results 1 to 3 of 3
hi i have couple of question first when i m running my php script file named myindex.php and while its running in browser i add this code in putty to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    5

    cant see php script in ps and cron job question


    hi
    i have couple of question first when i m running my php script file named myindex.php and while its running in browser i add this code in putty to see if it shows my php script is running or not but i see nothing
    ps aux |grep myindex.php | grep -v grep

    plz any help why i cant se if myindex.php is running or not with above command.

    second how can i add a cron job to my php script, i know only through kloxo or cpanel.

    thanks for any help.

  2. #2
    Just Joined!
    Join Date
    Dec 2007
    Location
    Bangalore
    Posts
    33
    hi,

    Observe the output of 'top -cd2 | grep myindex.php' while accessing the page via browser.

    you can schedule a job using 'crontab'

    cron - Wikipedia, the free encyclopedia

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    5
    ok thanks i got about cronjob and i set it through my kloxo now problem is left with script running, when i try this in browser
    top -cd2 | grep test2.php
    nothing shows up

    i monitor the PID of myindex.php and run in shell to see if it dislapy the file name:
    ps -aux

    i see there like this my php fie running with PID 22234:
    apache 22234 0.0 0.4 57660 34108 ? S 05:48 0:31 /usr/sbin/httpd

    so it is not showing my filename there.
    any help plz?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •