On Mon, Jun 21, 1999 at 11:03:05PM +0200, J Horacio MG wrote: > ~> > I'm on a dial on demand connection and I have this script in > ~> > /etc/ppp/ip-up.d/ for having the mail fetched from my ISP everytime I > ~> > make a connection, and then sent locally: > ~> > > ~> > ----- start script ----- > ~> > #!/bin/sh > ~> > > ~> > /usr/bin/fetchmail -f /etc/fetchmailrc -a -u a4608456 > ~> > > ~> > /usr/sbin/sendmail -q > ~> > ----- end script ----- > ~> > > ~> > now, this works alright but I'd like to know when everything is over > ~> > with a message echoed on screen... how do I go about that?Re: V. > basic script question > ~> > ~> I don't know exactly what you mean by `echo on the screen'. The most > ~> basic thing would be to print in the terminal where the script runs: > ~> > ~> echo Ready. > > Well, that's what I tried; I typed that in the script: > > ----- start script ----- > #!/bin/sh > > /usr/bin/fetchmail -f /etc/fetchmailrc -a -u a4608456 > > /usr/sbin/sendmail -q > > echo Done! > ----- end script ----- > > but didn't work. I even tried enclosing in quotes to no success. Just > now I'm thinking of having it in a script of its own, alphabetically > sorted so that it's ran after the above script (that might work).
try: echo Done! > /dev/console This should print to whatever console you are on (not all consoles, just the active one).