bash? What about ksh and others?
I edited a script called go on a server where I was sshed in. The shell was ksh, but I have also tried this with bash and zsh.
go was very simple but gave me remote evidence of the process contrinuing.
:
cd slideshow
python -m SimpleHTTPServer
was the sum total of go.
I put the cwd to the directory where go was resident, then
scsbrsweb1:/home/michmoor>at -t 06061643 -f go
where that time was 2 minutes from the time I hit return.
Once I was done, I waited to make sure the process started, with
scsbrsweb1:/home/michmoor>ps axwww|grep python
21710 ? SN 0:00 python -m SimpleHTTPServer
21717 pts/0 S+ 0:00 grep python
then I signed off and used a browser to look at the server's port 8000 to make sure the slideshow file was available for download. It was.
The "at" command is far more useful than one might imagine. I started putting it in SPEC files to get by a hostile %postun that would remove files I had updated for an rpm. It didn't stop the %postun but repaired the damage a minute later.
|