![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed find word ending with | eltinator | Shell Programming and Scripting | 2 | 08-22-2007 03:26 PM |
| never ending loop | ragha81 | Shell Programming and Scripting | 21 | 10-06-2006 03:07 PM |
| executables ending with * | binums | High Level Programming | 2 | 01-25-2006 08:39 PM |
| File- Ending | spikylina | UNIX for Dummies Questions & Answers | 3 | 03-08-2005 01:00 AM |
| ssh not ending (sometimes) from inside a script, why? | stilllooking | Shell Programming and Scripting | 1 | 09-16-2004 04:42 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hello,
I a problem. I would like write script in True64 Unix.see below. last testerkl | head > mailfile.asc wolteru < mailfile.asc With the "last" command I get a list when testerkl logged on. And I would like to send this to a user. But how can I write in a "ctrl.-d" and "ctrl.-c" that send and ends the mail. Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I'm not sure I've fully understood your problem. You can
mail the contents of a file by 'mail'. E.g.: last testerkl | head > mailfile.asc mail -s "Your subject" testerkl@his-host < mailfile.asc I hope this helps. -- Dolom -- |
|
#3
|
|||
|
|||
|
The problem was to stop the mail deamon. because I didn't want a dead process. Since this is sent every night I was worried that it could interfer with my daily backups. But I found out that after 2 minutes the mail deamin logs out. So my problem is solved.
Just for info. "last username" is not a file. It shows the login history of the user. It give's a output. And this display output I wanted to send to a user. The "last" command can use by all users. Thanks From the man from germany |
|||
| Google The UNIX and Linux Forums |