system call?

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

system call?

Post by Thunderstone »




I have unreliable dial-up connections and the result is that gw stops frequently in the middle of a process because the telnet session is cut off.

I understand that gw will re-start where it left off as far as retrieving files is concerned, however I use some long lists of urls and it wants to start over from the beginning of the list.

Is it possible to use a unix system call (or exec) to execute gw? Would this keep it running on the server even if the telnet session stops?

For example

system "gw -d/database -a -C -L http://url"

or

system "gw -d/database -a -C -L \"&list\"'

Mike Clark
super@101super.com





User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

system call?

Post by Thunderstone »



Perhaps you should use 'nohup' on the command, and maybe starting gw in the
background... the nohup will mask off the hangup signal sent to gw if your
session gets disconnected. See nohup(1) in the man.

nohup gw -d/database -a -C -L http://url" &

-Alan

-----Original Message-----
From: super@101super.com <super@101super.com>
To: asparks@cpd.harris.com <asparks@cpd.harris.com>
Date: Monday, September 13, 1999 10:20 AM
Subject: system call?


frequently in the middle of a process because the telnet session is cut off.
files is concerned, however I use some long lists of urls and it wants to
start over from the beginning of the list.
this keep it running on the server even if the telnet session stops?




Post Reply