Got told a couple of days ago about a quite cool feature for using in SSH/Telnet.
nohup perl script.cgi --args > log.txt &
...this will run the process on your server without having to stay logged into the SSH session (unlike perl script.cgi --args > log.txt & would do).
Another cool thing I learned about tail is this;
tail -50 -f log.txt
This will show you the contents of log.txt dynamically (i.e as the process is running), without slowing the process down (maybe a little bit of a slowdown in CPU, cos it is doing one more task).... but none the less,the script will keep running, and you can see the process without holding it up :) This is pretty cool when it comes to build processes in LSQL, which can sometimes be pretty large.
Anyway, I learned these 2 commands off a client (who learned them off a tech support guy
), so I thought I would just pass them on to you log, as they are pretty cool
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
nohup perl script.cgi --args > log.txt &
...this will run the process on your server without having to stay logged into the SSH session (unlike perl script.cgi --args > log.txt & would do).
Another cool thing I learned about tail is this;
tail -50 -f log.txt
This will show you the contents of log.txt dynamically (i.e as the process is running), without slowing the process down (maybe a little bit of a slowdown in CPU, cos it is doing one more task).... but none the less,the script will keep running, and you can see the process without holding it up :) This is pretty cool when it comes to build processes in LSQL, which can sometimes be pretty large.
Anyway, I learned these 2 commands off a client (who learned them off a tech support guy
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

