Sorry Solli, Below is the output what u asked for,
1. If i run the code /scripts/xxx.pl i get the below error...
interpreter "/usr/bin/perl" not found
sh: /scripts/xxx.pl: not found. 2. The first line in the code is below (i have added the Shepang Value) #!/usr/bin/perl I did not get the meaning of (Quote properly????) Regards Mazhar On 10/11/06, Bjørge Solli <[EMAIL PROTECTED]> wrote:
This is the last top-posted email from you that I will answer.. Please learn how to quote properly! On Wednesday 11 October 2006 13:14, Mazhar wrote: > 1. Is /scripts/xxxx.pl the full path name? > Yes the above is the correct path of the script : when i run perl > /scripts/xxx.pl it runs fine So this is how you run it from command:? perl /scripts/xxx.pl What happens if you try this: /scripts/xxx.pl > 2. Does your script have execute permissions > Yes it has execute permissions (i changed it chmod +x for the code file) what is the output of ls -l /scripts/xxx.pl > 3. Does the shebang line indicate the full path to the perl binary? > Can u explain me what does the above signify What is the first line in your script? It *should* look like this: #!/usr/bin/perl or similar. Make sure you also have at the top of your script: use strict; use warnings; Then give us the *whole* error message (the whole output if it is not too long). Regards Bjørge > Regards > Mazhar > > On 10/11/06, Owen Cook <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 11, 2006 at 03:03:12PM +0400, Mazhar wrote: > > > Dear All, > > > > > > My Code is to ping a range of IP reading from a text file and if they > > > > are > > > > > not reachable then just write the IP's to a file. Regarding > > > permissions > > > > i > > > > > am running the same script using root previliges and i am able to run > > > > the > > > > > script maually but it is failing if i write the script in cron like one > > > below, > > > 10 * * * * /scripts/xxxx.pl > > > > > > Can u all please help on the above > > > > 1. Is /scripts/xxxx.pl the full path name? > > 2. Does your script have execute permissions > > 3. Does the shebang line indicate the full path to the perl binary? > > > > > > > > Owen > > > > > Regards > > > Mazhar > > > > > > On 10/9/06, Paul Johnson <[EMAIL PROTECTED]> wrote: > > > >On Mon, Oct 09, 2006 at 03:23:49PM +0400, Mazhar wrote: > > > >> I tried with the below and made my script as executable with chmod > > > > > > > >command > > > > > > > >> but the same is not running every 10 minutes. > > > > > > > >Once you have worked out your crontab syntax, almost all cron problems > > > > are > > > > > >due > > > >to permissions or environment. > > > > > > > >> Need your help > > > > > > > >Since you have provided no information whatsoever on how your script > > > > is failing it is hard to say more than that. > > > > > > > >-- > > > >Paul Johnson - [EMAIL PROTECTED] > > > >http://www.pjcj.net > > > > -- -- Bjørge Solli - Office:+47 55205847 Mohn-Sverdrupsenteret, Nansensenteret, Høyteknologisenteret T47 Thormöhlensgate 47, 5006 Bergen, Norway - www.nersc.no Google Earth: www.nersc.no/GE - TOPAZ: topaz.nersc.no -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>