/sbin/chmod -c 777 <path and scriptname>
Then, invoke GEDIT, open <path and scriptname>, edit out all the repetition lines, so only the last line of each triangular block remains. Edit out everything but the sequence of commands that you wish to execute. Save. select [highlight] those lines.
*Open a NEW file. Copy the lines to the new file*. Exit the edited script file. Last, exit the new file.
Invoke /sbin/chmod -c 777 <path and newfilename>. Then ls -l <newfilename> It should say 'rwxrwxrwx'. Try running it. Good luck.
If it works, make a copy of it and save in a different directory. The reason for all the argle-bargle is that linux has special RULES that it applies to files written by SCRIPT, and those rulews can drive you absolutely @#$%^&*() insane. So you copy to a new [normal] file.
Drop me a line when it works!
Steve
P.S. I'm just "Newbie" too. If someone out there knows a simpler way to get the job done, then for the love of Whoozis, TELL US !!!
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list