Front page | perl.beginners |
Postings from December 2002
function system
Thread Next
From:
Pedro Corcobado
Date:
December 18, 2002 04:34
Subject:
function system
Message ID:
20021218123437.16146.qmail@web20421.mail.yahoo.com
I have a problem with the function system.
I execute a source like this:
programa.pl
#!/opt/perl/bin/perl
.
.
.
.
.
.
.
sub funcion_monitor ()
{
................
................
system("nohup funcion_halt &");
}
sub funcion_halt ()
{
system("programa.pl stop");
system("UNIX's command");
system("UNIX's command");
}
system("programa.pl stop");
sub funcion_parar ()
{
..................
..................
system("UNIX's command");
}
when I run the function "funcion_monitor" this call to
the function "funcion_halt" - it using the perl's
function system and the UNIX' command nohup.
The function funcion_halt call again to my programan
with argument stop ( funcion_parar ). The function
"function_para" run without problems, I haven't errors
when I execute the program from command line -
./progrma.pl -, but when I use the same source in a
cluster the two lines after "system("programa.pl
stop"); doesn't runnig. I understand nothing.
There are some problem with the command system in this
case?
Thank for all
___________________________________________________
Yahoo! Sorteos
Consulta si tu nĂºmero ha sido premiado en
Yahoo! Sorteos http://loteria.yahoo.es
Thread Next
-
function system
by Pedro Corcobado