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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!