deadpickle has asked for the wisdom of the Perl Monks concerning the following question:
The script I use to run this program in the background follows (cshell script):#! perl -slw use strict; use IO::Socket; use XML::Simple; #use Data::Dumper; $SIG{PIPE} = "IGNORE"; $\="\n"; my $img = '"http://updraft.unl.edu/~uas/uas/uas.png"'; my $post_time; my $test; my $xs = XML::Simple->new( RootName=>'Telemetry', XMLDecl => 1); for (;;){ my $tele_client = IO::Socket::INET->new( 'localhost:12345' ) or pr +int $!; my $way_client = IO::Socket::INET->new( 'localhost:56789' ) or pr +int $!; while( <$tele_client> ) { ################################# } print "SLEEP"; sleep 10; }
For some reason this script wont run in the background of the linux server. typing ps -u uas in the terminal after running the cshell the client script doesnt show up. The idea here is to have an autonomous client that will continuously try to connect to the localhost so that when the data is availible it does not require the user to manually start the script. Any ideas?at now << EOF uas-client.pl EOF exit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running Client in Background
by chrism01 (Friar) on May 06, 2008 at 05:09 UTC | |
|
Re: Running Client in Background
by pc88mxer (Vicar) on May 06, 2008 at 05:26 UTC | |
|
Re: Running Client in Background
by mscharrer (Hermit) on May 06, 2008 at 07:35 UTC | |
|
Re: Running Client in Background
by brechin (Initiate) on May 06, 2008 at 14:50 UTC | |
by deadpickle (Pilgrim) on May 06, 2008 at 23:50 UTC |