[Perl] system()

Yossi.Itzkovich at ecitele.com Yossi.Itzkovich at ecitele.com
Thu Apr 10 15:21:10 EEST 2003


Hi,

maybe the probelm is $PATH.

use full path and check.



Yossi Itzkovich
mailto:Yossi.Itzkovich at ecitele.com
Phone : 03-9266147     Fax: 03-9266200
Mobile:  055-786147


                                                                                                                                  
                      "Qiang YiLiang"                                                                                             
                      <yl.qiang at amd.co         To:      perl at perl.org.il                                                          
                      m>                       cc:                                                                                
                      Sent by:                 Subject: [Perl] system()                                                           
                      perl-admin at perl.                                                                                            
                      org.il                                                                                                      
                                                                                                                                  
                                                                                                                                  
                      10/04/2003 13:10                                                                                            
                      Please respond                                                                                              
                      to perl                                                                                                     
                                                                                                                                  
                                                                                                                                  



I have one code like the following:

my $MOD_PUR = "module purge";

#setup the cosim env
system("$MOD_PUR")==0 or die("system \"$MOD_PUR\" failed: $!");

I always got the following error:

system "module purge" failed: Illegal seek at /user/ylqiang/runCosim.pl
line 42.

"module purge" is one of program of myself.

but I can run it in the c shell and tcsh.

What should I do?

Rgrds,
Yiliang







More information about the Perl mailing list