HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- in/output redirection
Operating System - HP-UX
1834149
Members
3848
Online
110064
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
01-27-2005 01:14 AM
01-27-2005 01:14 AM
in/output redirection
why is stderr not correctly mapped in below examples:
ehvux11$ csh -c "ftp -n ehvux11 fout"
ftp: connect: Connection refused
ehvux11$ cat fout
Not connected.
Not connected.
Not connected.
Not connected.
ehvux11$ ksh -c "ftp -n ehvux11 fout"
Login incorrect.
Login failed.
Please login with USER and PASS.
Please login with USER and PASS.
Please login with USER and PASS.
ehvux11$ ls
ehvux11$ csh -c "ftp -n ehvux11
ftp: connect: Connection refused
ehvux11$ cat fout
Not connected.
Not connected.
Not connected.
Not connected.
ehvux11$ ksh -c "ftp -n ehvux11
Login incorrect.
Login failed.
Please login with USER and PASS.
Please login with USER and PASS.
Please login with USER and PASS.
ehvux11$ ls
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 01:30 AM
01-27-2005 01:30 AM
Re: in/output redirection
Don't use csh. Redirection in general stinks with csh. I used to be a die hard csh fan and had to relearn shell altogether to utilize posix and ksh when I realized that csh wasn't any good.
See http://www.grymoire.com/Unix/CshTop10.txt
See http://www.grymoire.com/Unix/CshTop10.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 01:39 AM
01-27-2005 01:39 AM
Re: in/output redirection
seems stderr (2) is not mapped correctly with the ksh and ftp when I do an ls zzz 2> fout it reports correct I would expect that the ftp message Login incorrrect is also redirected to 2.
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