Sponsored Content
Top Forums UNIX for Dummies Questions & Answers printing over tcp/ip via telnet session Post 393 by Neo on Thursday 30th of November 2000 11:45:31 AM
Old 11-30-2000
Lightbulb

The way I would do it 'quick and dirty' would be to telnet, run the command and email the results back to the host you can print from. For example (assuming you use elm, please use your favorite command line mailer... mail, sendmail, pine, elm, etc.):

Quote:
df -k | elm -s"Todays DF Report" you@therightplace.com
If you need to do this a lot, then you would use the cron and crontab to make it happen automatically.

Then if you need to automatically print it, you would write a simple mail filter to take the mail and sent it to the printer. You could also format with the script, if you want to reformat.

 

9 More Discussions You Might Find Interesting

1. IP Networking

TCP/IP printing on SCO 2.1.3

I am trying to set up TCP/IP printing to so we can remove the old novel server. The printer details have been added to the etc/hosts file correctly, and the printer added as a remote UNIX printer . However when a print job is issued lpstat -o displays the job, but it dosent move. Any help yould... (2 Replies)
Discussion started by: eel_king
2 Replies

2. UNIX for Dummies Questions & Answers

telnet session timeout

hi, we can set something such that if the user has been idle for a while, it will auto disconnect. where to do so? thanks (6 Replies)
Discussion started by: yls177
6 Replies

3. Shell Programming and Scripting

Telnet session does not expire

Dear friends.. Our project has a module that runs on handheld devices. Through the handheld we telnet to solaris where the application actually runs. I noticed that after starting a session through the handheld, if i go out of range or if i remove and replace the battery in the handheld, the... (1 Reply)
Discussion started by: deepsteptom
1 Replies

4. Shell Programming and Scripting

Telnet Session

{ sleep 2 echo "$user" sleep 2 echo "$password" sleep 2 echo " ls" sleep 10 echo "exit" }| telnet $server I have a machine x and i have executed the above script on machine 'x'. i entered the... (6 Replies)
Discussion started by: pathanjalireddy
6 Replies

5. UNIX for Dummies Questions & Answers

Unix Telnet session

Hi Is there any way whilst in a telnet session you can view your client machine name that you are using to connect to the Unix box ? :eek: (2 Replies)
Discussion started by: mlucas
2 Replies

6. UNIX for Dummies Questions & Answers

Telnet Session to AIX

Hello, I have AIX 5.3 at home connected to netgear router. Port Forwarding has been enabled on the router. Problem is that if I want to telnet, I have to try 2 or 3 times before I can get a logon prompt. It times out for first or second time (Connection to session <IP_Address> failed: Connection... (1 Reply)
Discussion started by: bluebee
1 Replies

7. UNIX for Dummies Questions & Answers

Disconnecting a telnet session

How can I disconnect an existing telnet session? The host is a serial port server with multiple ports. The users login using the host's name and a port, i.e. telnet host01 1235. Thanks. (14 Replies)
Discussion started by: cooldude
14 Replies

8. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

9. HP-UX

Logging into UNIX via TCP/IP Telnet

I can connect to the UNIX box using a TCP/IP Telnet session but the UNIX does not respond with the login prompt. The box responds to a PING and the Telnet session actually connects, but no prompt of any sort is recieved back. I can connect via the console, get the login prompt and can login. ... (3 Replies)
Discussion started by: Newnix
3 Replies
MAILSNARF(8)						      System Manager's Manual						      MAILSNARF(8)

NAME
mailsnarf - sniff mail messages in Berkeley mbox format SYNOPSIS
mailsnarf [-i interface | -p pcapfile] [[-v] pattern [expression]] DESCRIPTION
mailsnarf outputs e-mail messages sniffed from SMTP and POP traffic in Berkeley mbox format, suitable for offline browsing with your favorite mail reader (mail(1), pine(1), etc.). OPTIONS
-i interface Specify the interface to listen on. -p pcapfile Process packets from the specified PCAP capture file instead of the network. -v "Versus" mode. Invert the sense of matching, to select non-matching messages. pattern Specify regular expression for message header/body matching. expression Specify a tcpdump(8) filter expression to select traffic to sniff. SEE ALSO
dsniff(8), mail(1), pine(1) AUTHOR
Dug Song <dugsong@monkey.org> MAILSNARF(8)
All times are GMT -4. The time now is 03:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy