Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: system command is not working

by je44ery (Hermit)
on Dec 09, 2011 at 18:30 UTC ( #942710=note: print w/ replies, xml ) Need Help??


in reply to Re^4: system command is not working
in thread system command is not working

The first two bytes of the file must be the characters #! You can not just have a few blank lines above your #!/usr/bin/perl line.

This is a shell script (with line numbers showing), not a Perl script:

1 2 #!/usr/bin/perl 3 4 echo This is really a shell script!

If the first two bytes of the file are not #! then the system default shell will interpret the commands in the file. Thus, your error.

Seriously, dude, you need to learn the basics of your Unix shell.


Comment on Re^5: system command is not working
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://942710]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-08-30 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls