I would appreciate your advice on using the unix batch (at) command to run a cgi at a specified time. I have been looking at system() and backtick methods.
e.g. from unix prompt (this works):
I have tried the following perl offline:[unix]$ at now + 2 minute <<EOF ? /......./mifuture.cgi idnumber=222 ? EOF warning: commands will be executed using /bin/sh job 76 at 2001-01-24 14:22
#!/usr/bin/perl `intranet/develop/Susp/mifuture.cgi idnumber=218`; `at now + 2 minute <<EOF`; `/....../mifuture.cgi idnumber=220`; `EOF` ; $atq = `atq`; print qq( ATQ: $atq<BR>);
When run offline this passes the idnumber, but mailings for idnumber 218 and 220 are sent at same time. mifuture.cgi sends mail including idnumber. When run online (from browser) the cgi with appropriate form doesn't pass the idnumber.
Thanks in advance for any contributions,
regards,
Roy
2001-03-04 Edit by Corion : Added <CODE> tags
In reply to Unix batch from perl? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |