- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: elm standard error/output from script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:38 AM
12-06-2001 08:38 AM
I have a cron'd backup script that backs up some files as root then emails the log to a couple of people -
here is what i get back from cron:
&f1k16d-1L &f2k16d-1L &f3k16d-1L &f4k16d-1L &f5k16d-1L &f6k16d-1L &f7k16d-1L &f8k7d1L Cancel&s1A&jB&jR&f1k16d-1L &f2k16d-1L &f3k16d-1L &f4k16d-1L &f5k16d-1L &f6k16d-1L &f7k16d-1L &f8k7d1L Cancel&s1A&jB&jR&f1k14d1L Display Msg&f2k14d1L Mail Msgm&f3k15d1L Reply to Msgr&f4k14d1L Save Msgs&f5k14d1L Delete Msgd&f6k14d1LUndelete Msgu&f7k14d1L Print Msgp&f8k14d1L Quit ELMq&s1A&jB&jR&s1A&jB&jR&s0A&j@&f1k16d-1L &f2k16d-1L &f3k16d-1L &f4k16d-1L &f5k16d-1L &f6k16d-1L &f7k16d-1L &f8k7d1L Cancel&s1A&jB&jR&f1k16d-1L &f2k16d-1L &f3k16d-1L &f4k16d-1L !
&f5k16d-1L &f6k16d-1L &f7k16d-1L &f8k7d1L Cancel&s1A&jB&jR&f1k14d1L Display Msg&f2k14d1L Mail Msgm&f3k15d1L Reply to Msgr&f4k14d1L Save Msgs&f5k14d1L Delete Msgd&f6k14d1LUndelete Msgu&f7k14d1L Print Msgp&f8k14d1L Quit ELMq&s1A&jB&jR&s1A&jB&jR&s0A&j@
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
/usr/glsbin/filebu.sh
this looks like the standard elm menu, so I am assuming that is where the problem is - anyone have any thoughts on why I'm getting this? this is the elm command at the end of the script:
for names in $mailist
do
cat $bklog | elm -s "File Archive $host" $names >/dev/null
done
Thanks, Nick
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:42 AM
12-06-2001 08:42 AM
Re: elm standard error/output from script
elm -s "File Archive $host" $names < $bklog
instead
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:44 AM
12-06-2001 08:44 AM
Re: elm standard error/output from script
elm -s "Suject" user@domain.com < filename
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:45 AM
12-06-2001 08:45 AM
Re: elm standard error/output from script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:45 AM
12-06-2001 08:45 AM
Re: elm standard error/output from script
your script under cron either is fully pathed or that PATH is properly set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:49 AM
12-06-2001 08:49 AM
Re: elm standard error/output from script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:52 AM
12-06-2001 08:52 AM
Re: elm standard error/output from script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 09:05 AM
12-06-2001 09:05 AM
Re: elm standard error/output from script
The following command will send the log file as attachment in email.
For multiple people to receive it use mail aliases by defining it in /etc/mail/aliases file.
#/usr/bin/uuencode
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 05:41 AM
12-11-2001 05:41 AM