Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: how to keep tracking the system command in cgi

by samizdat (Vicar)
on Feb 10, 2006 at 17:05 UTC ( [id://529412]=note: print w/replies, xml ) Need Help??


in reply to how to keep tracking the system command in cgi

You can run a ps -ax command and grep for your command's name in the returned output. You could also, if you need intermediate results, write (or append) progress indicators to a log file and check that file's contents.

For example,
  • Create Directory... write 'S1' to log file
  • Write First File... write 'S2' to log file
  • Write 2nd File... write 'S3' to log file
  • Write last File... write 'Sx' to log file

Read the file and RegEx for /Sx/. Some variant of this should help you. You could also use a SHM drop-box or other in-memory variant.

Don Wilde
"There's more than one level to any answer."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://529412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-24 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found