- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Funky "From" heading in email, when run thru cront...
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
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
05-06-2004 07:18 AM
05-06-2004 07:18 AM
I run this script thru root's crontab, that does ...
00 07 * * 6 su user1 -c /home/user1/scripts/backup/transfer_file.sh
I use mailx, so I can send an a attachment.
When I get the email, in the from heading
SCP id for transfer of DB
Yes, I am running a command that scp's a file, in the transfer_file.sh
Where does it pick up this wonky wording...
SCP id for transfer of DB
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:38 AM
05-06-2004 07:38 AM
Re: Funky "From" heading in email, when run thru crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:38 AM
05-06-2004 07:38 AM
Re: Funky "From" heading in email, when run thru crontab
Also what is the user1 entry in /etc/passwd? Particularly Description field.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:44 AM
05-06-2004 07:44 AM
Re: Funky "From" heading in email, when run thru crontab
Though you are running this as part of root cron job, you are doing a su as user1, so effectively the user running the job is user1.
While emailing the name of the user1 specified in the /etc/passwd file is added and the from would show as
some_name
Login as root, do a su - user1 and now send yourself an email and you'll know.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:45 AM
05-06-2004 07:45 AM
Re: Funky "From" heading in email, when run thru crontab
In your script try as follows.
mailx -r "xxx" -s "whatever" mail_id
Now it should say mail from
xxx@hostname
Anil