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
! <- end
unfortunately when I put this into a script it doesnt appear to do anthing inside the mail file.
Thank you in advance for any help.
mail <<! <- open the mail program for using prompts
s nextmail <- save mail into nextmail file
q <-quit out
! <- end
unfortunately when I put this into a script it doesnt appear to do anthing inside the mail file.
Thank you in advance for any help.