theclave
04-19-2001, 12:57 PM
Can anyone help me with writing scripts to do the following?:
1. I regularly telnet into a UNIX system, and read my mail by cd'ing to my inbox and doing cat <filename> for each message. What I want is a script that will display just the text starting 'From:' to avoid all the various crap that comes first.
2. I'm setting up a home network, and I send messages to other users by doing the following:
i. finger <user> - look at which port they are on.
ii. cat>/dev/pts/<port>
Is there a way of automating this?
Your help appreciated, thanks in advance.
1. I regularly telnet into a UNIX system, and read my mail by cd'ing to my inbox and doing cat <filename> for each message. What I want is a script that will display just the text starting 'From:' to avoid all the various crap that comes first.
2. I'm setting up a home network, and I send messages to other users by doing the following:
i. finger <user> - look at which port they are on.
ii. cat>/dev/pts/<port>
Is there a way of automating this?
Your help appreciated, thanks in advance.