I cannot get this to work inside a korn shell script, if I type the commands in then it does it but if I put it in a script and run it it doesnt work. the code I am trying to use is:
mail <<! <- open the mail program for using prompts
s nextmail <- save mail into nextmail file
q <-quit out
! <-...
Im writing a script that needs to read a mail, save it then do some processing on the saved file then delete the mail according to the results of the processing....
I was wondering if it were possible to write a script file so that you could do mail -s filename....(which cant be run as -s is a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.