Re: V. basic script question
~> > 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).
~> If you want a window to pop up, you might use xmessage from the xcontrib
~> package:
... that's beyond my expectations for now, thank you very much.
Thank You
--
Horacio
homega@vlc.servicom.es
Valencia - ESPAÑA
Reply to: