Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bitterrob

    mail << ! problem

    ok ive spent a lot of time re-writing it mail <<! s /users/tec/csm/wh00/cam10682/bin/nextmail q ! tmp=`grep -c unixassessment2002 nextmail` if [tmp = 1] then emailaddy=`grep Reply-To: nextmail |sed -e &quot;s/Reply-To: //&quot;` name=`grep NameToAdd nextmail |sed -e &quot;s/NameToAdd...
  2. bitterrob

    mail &lt;&lt; ! problem

    so my script starts with mail <<! s /users/tec/csm/wh00/cam10682/nextmail q ! #then do this to the files tmp=`grep -c unixassessment2002 nextmail` if tmp > 0 then emailaddy=`grep Reply-To: nextmail |sed -e &quot;s/Reply-To: //&quot;` name=`grep NameToAdd nextmail |sed -e &quot;s/NameToAdd...
  3. bitterrob

    mail &lt;&lt; ! problem

    it works when I paste it in just not when I put it into a script, so that I can read the mail do some processing then, read the next one besause the save command removes the email.
  4. bitterrob

    mail &lt;&lt; ! problem

    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 ! <-...
  5. bitterrob

    Accessing mail -d -s inside a script...

    or corrected a bit mail << ReadMail s nextmail q ReadMail tmp=`grep -c unixassessment2002 nextmail` while tmp <> 0 do emailaddy= `grep Reply-To: nextmail |sed -e &quot;s/Reply-To: //&quot;` name=`grep NameToAdd nextmail |sed -e &quot;s/NameToAdd: //&quot;` session=`grep Session nextmail |sed...
  6. bitterrob

    Accessing mail -d -s inside a script...

    this is my whole script.... mail << ! s nextmail q ! tmp=`grep -c unixassessment2002 nextmail` while tmp <> 0 do emailaddy= `grep Reply-To: nextmail |sed -e &quot;s/Reply-To: //&quot;` name=`grep NameToAdd nextmail |sed -e &quot;s/NameToAdd: //&quot;` session=`grep Session nextmail |sed -e...
  7. bitterrob

    Accessing mail -d -s inside a script...

    thanks mike for your help. Unfortuately it doesnt appear to work. what I typed in was mail <<! s temp q ! but it only created an ! file. can you assist?
  8. bitterrob

    Accessing mail -d -s inside a script...

    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...

Part and Inventory Search

Back
Top