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
In reply to Running Client in Background by deadpickle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |