trying to setup a crontab job, I have a sh file that runs
./fidopoll 0:0/000
./mailin.sh
./mailout.sh
I'd like to know how to add the command to open a terminal window then
run those commands in the .sh file.
trying to setup a crontab job, I have a sh file that runs
./fidopoll 0:0/000
./mailin.sh
./mailout.sh
I'd like to know how to add the command to open a terminal window then
run those commands in the .sh file.
I'd like to know how to add the command to open a terminal window then run those commands in the .sh file.
I have never done that and don't know if it's possible. Cron is meant to run commands unattended so they are not seen.
I have never done that and don't know if it's possible. Cron is
meant to run commands unattended so they are not seen.
It has been some time since I last did something of this sort, but you should set the proper DISPLAY variable in cron and authorize the cron
user to use that display.
I think you can do it, but it sounds very fragile to me. Plus, if you don't have a working display by the time cron triggers, it all will
crash.
If invoking the scripts from a graphical interface was a must, I would forget about cron and use my desktop environment to load a while loop
that called the commands periodically.
Cron doesn't have the paths that your regular user has so it's always a good idea to use the full path to the executables when running from cron.
Cron doesn't have the paths that your regular user has so it's
always a good idea to use the full path to the executables when
running from cron.
Hay thanks, I'll keep screwing around and see what I come up with.
| Sysop: | digital man |
|---|---|
| Location: | Riverside County, California |
| Users: | 1,166 |
| Nodes: | 17 (1 / 16) |
| Uptime: | 417:15:31 |
| Calls: | 509,423 |
| Calls today: | 9 |
| Files: | 262,240 |
| D/L today: |
5,518 files (1,523M bytes) |
| Messages: | 469,851 |
| Posted today: | 4 |