HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: standard output redirect from script
Operating System - HP-UX
1834431
Members
2184
Online
110067
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
07-31-2005 02:04 PM
07-31-2005 02:04 PM
standard output redirect from script
Hi
I want a osiping running at backgrund all the time but redirect the standard output to a file so I can monitor it.
I tried this
# at now
osiping NSAPs 2>&1 /tmp/osiping.log
crtl D
but it is not working, the osiping is running but I see nothing in that file.
thanks
Nan
I want a osiping running at backgrund all the time but redirect the standard output to a file so I can monitor it.
I tried this
# at now
osiping NSAPs 2>&1 /tmp/osiping.log
crtl D
but it is not working, the osiping is running but I see nothing in that file.
thanks
Nan
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2005 03:44 PM
07-31-2005 03:44 PM
Re: standard output redirect from script
Try:
osiping NSAPs > /tmp/osiping.log 2>&1
- Biswajit
osiping NSAPs > /tmp/osiping.log 2>&1
- Biswajit
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2005 04:31 PM
07-31-2005 04:31 PM
Re: standard output redirect from script
Hi,
Could you try using
osiping NSAPs >/tmp/osiping.log
for only redirecting standard output.
HTH,
Devender
Could you try using
osiping NSAPs >/tmp/osiping.log
for only redirecting standard output.
HTH,
Devender
Impossible itself mentions "I m possible"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2005 05:57 PM
07-31-2005 05:57 PM
Re: standard output redirect from script
You have to try as,
# osiping NSAPs 1>/tmp/osiping.log 2>&1 &
If you use & you can monitor log file in same terminal.
It will run into background and you can monitor it as,
# tail -f /tmp/osiping.log
Problem in your script is, you are redirecting standard error to standard output but did not redirect standart output to log file.
hth.
# osiping NSAPs 1>/tmp/osiping.log 2>&1 &
If you use & you can monitor log file in same terminal.
It will run into background and you can monitor it as,
# tail -f /tmp/osiping.log
Problem in your script is, you are redirecting standard error to standard output but did not redirect standart output to log file.
hth.
Easy to suggest when don't know about the problem!
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP