Hey, i am really new to Perl and UNIX, all i need to know how to know how to save scripts in UNIX? after i get done writing the script i type the command chmod 755 filename, but it I think the shell thinks that is a part of the script, i dont know if i am supposed to type in a save command or somethign before i type the chmod?
Which tool you using to write the script?
if it is cat press 'Ctrl+d'
vi press 'Esc' then type :wq
then chmod +x 755
to run the script:
im using pico, i already figured it out though, thanx
What I would do is open up vi and hit escape a couple of times, then type :r and the name of the hopefully saved perl script. Then hit enter. Press colon and type wq. Then do chmod 700 filename. After that simply type in the name of the script. I think that will work.