- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Emailing user on script completion
Operating System - Linux
1753452
Members
5886
Online
108794
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО01-27-2006 10:08 AM
тАО01-27-2006 10:08 AM
Hello,
I have been programming a FORTRAN program that, when complete, will take many days to execute.
I am looking for a UNIX system command that I can call in order to email the user on completion. I would like it to be a single line command, as these are simple to program into FORTRAN.
I am faily new to the UNIX environment but I have used program sthat do this, so I know it's possible.
Thanks for all your help.
I have been programming a FORTRAN program that, when complete, will take many days to execute.
I am looking for a UNIX system command that I can call in order to email the user on completion. I would like it to be a single line command, as these are simple to program into FORTRAN.
I am faily new to the UNIX environment but I have used program sthat do this, so I know it's possible.
Thanks for all your help.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2006 10:19 AM
тАО01-27-2006 10:19 AM
Re: Emailing user on script completion
Hi,
I'm not a programmer and don't know Fortran at all.
Is the program started from a scheduler (like cron) or is it called within a shell-script.
Within unix you can use mailx, to sent a mail.
Darrel
I'm not a programmer and don't know Fortran at all.
Is the program started from a scheduler (like cron) or is it called within a shell-script.
Within unix you can use mailx, to sent a mail.
Darrel
- Tags:
- mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2006 10:22 AM
тАО01-27-2006 10:22 AM
Re: Emailing user on script completion
Alex...take a look at the "system" command under FORTRAN. That's probably what you are looking for. Something like...
value=system("mailx -s subject mailaddress")
enjoy!
value=system("mailx -s subject mailaddress")
enjoy!
- Tags:
- system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2006 11:10 PM
тАО01-27-2006 11:10 PM
Solution
In HP-UX, it's very simple:
echo $MESSAGE_STRING | mailx -s Subject me@mydomain
So if you can firstly build the string in FORTRAN, then execute the UNIX commannd line, you're away.
echo $MESSAGE_STRING | mailx -s Subject me@mydomain
So if you can firstly build the string in FORTRAN, then execute the UNIX commannd line, you're away.
Trying is the first step to failure - Homer Simpson
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP