- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- unix prefix commands...(nohub)
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
Discussions
Discussions
Forums
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
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
тАО04-23-2006 06:06 AM
тАО04-23-2006 06:06 AM
unix prefix commands...(nohub)
how many HPUX prefix commands are there?
[ p.s.,: prefix commands, which precede another commands. ex:nohub ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2006 06:19 AM
тАО04-23-2006 06:19 AM
Re: unix prefix commands...(nohub)
Aside from 'nohup' an exceedingly useful one is 'command'. 'command' enables the shell to treat the arguments as a simple command, suppressing the shell function lookup.
If you consider that one of the standard UNIX pardigmns is that processes have a standard input and a standard output stream, then the pipe ("|") is one of the most powerful "commands" enabling the the connection of process streams into "filters".
In addition to the pipe ("|") we could add the 'tee' command taht transcribes the standard input to the standard output and makes copies in the files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2006 06:44 AM
тАО04-23-2006 06:44 AM
Re: unix prefix commands...(nohub)
Some more
xargs - see man xargs
time - to see execution times of a command.
nice - to run a command with specific priority
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2006 07:10 AM
тАО04-23-2006 07:10 AM
Re: unix prefix commands...(nohub)
Another, less common operation is to do:
# sh -c string
This invokes a shell (in this example, the POSIX one) and reads commands from the string argument.
This is one way to create a separate process. You can see this by doing:
# date; sh -c "export TZ=GMT; date;"; date
Sun Apr 23 15:03:06 EDT 2006
Sun Apr 23 19:03:06 GMT 2006
Sun Apr 23 15:03:06 EDT 2006
As you can see, the GMT timezone was set only for the separate process. The original shell environment remained undisturbed.
I'll note in passing that could also create a separate process (environment) thusly:
# date; (export TZ=GMT; date); date
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2006 08:08 AM
тАО04-23-2006 08:08 AM
Re: unix prefix commands...(nohub)
TZ=EST5EDT date
TZ=GMT0 date
In the above examples, the date command is run with a different TZ value. This is a shell construct rather than a command to precede a command.
Bill Hassell, sysadmin