Silly question: Does submit_now.pl have its execute bit set? -------- Paul Anderson -- VE3HOP
On 2012-08-09, at 3:17 AM, venki neeli <[email protected]> wrote: > hi Midhun/Hal > > Shebang lines of Script-1 and Script-2 and perl location are same. > Where as Script one is executing and Script-2 is not executing. > The other machines are calling the Script-2 perfectly with command > "./submit_now.pl $xxxx". > Full path also I have tried. What may be the problem? is it with version of > perl? or perl module problem? > > > Regards, > Neeli > > > > ________________________________ > From: midhun <[email protected]> > To: Hal Wigoda <[email protected]> > Cc: venki neeli <[email protected]>; perl list <[email protected]> > Sent: Thursday, 9 August 2012 12:01 PM > Subject: Re: system command not working in different versions > > Neeli, Hal is right. Try $which perl from your shell. The location may > differ. > > Regards, > Midhun > > On Thu, Aug 9, 2012 at 11:46 AM, Hal Wigoda <[email protected]> wrote: > >> What about the location of perl itself? >> >> >> On Thu, Aug 9, 2012 at 12:13 AM, venki neeli <[email protected]> >> wrote: >>> Yes Midhun, >>> >>> I have compared both. Even I have tried keep both same. >>> >>> See the shebang line. >>> #!/usr/bin/perl -w >>> >>> >>> Note:- Script-1 and script-2(submit_now.pl) are in same location. >>> >>> Regards, >>> Neeli >>> >>> >>> ________________________________ >>> From: midhun <[email protected]> >>> To: venki neeli <[email protected]> >>> Cc: perl list <[email protected]> >>> Sent: Wednesday, 8 August 2012 3:55 PM >>> Subject: Re: system command not working in different versions >>> >>> One suggestion. Did you compare the shebang line of your submit_now.pland >>> your perl executable location in the 2nd machine where it is not working. >>> >>> Regards, >>> Midhun >>> >>> On Wed, Aug 8, 2012 at 11:48 AM, venki neeli <[email protected] >>> wrote: >>> >>>> Dear Friends, >>>> >>>> I am developing a script in which I need to call another perl script. >>>> In one linux machine it is working and in the other machine it is not >>>> working. >>>> >>>> Ex:- system("./submit_now.pl $xxxx"); >>>> >>>> can you please, tell me what is the reason? >>>> and as well solution. >>>> >>>> Regards, >>>> Neeli >>> >>> >>> >>> >>> -- >>> -Midhun >> >> >> >> -- >> ----------------- >> Chicago >> Hal Wigoda -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
