- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: queue (FIFO) execution in HP UX
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
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
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
тАО06-01-2009 10:11 AM
тАО06-01-2009 10:11 AM
i was wondering if you could assist me in the following situation:
i am trying to queue a group execution commands (same command but different parameters) submited from an openVMS system to a Unix system (HP UX). The commands should run in sequence; the next starts after prev finish. The commands are submitted in random order at any time.
So far the only option i see is writing a solution from scratch. generally speaking, this solution will involve copying the command as they come in from the openVms server into a file and having another process check this file for the next command insuring the commands are executed in FIFO order. the process will check the file continously or within specified constraint
this said, i was wondering if there are any unix commands that can do similar function or could help in this case?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 10:23 AM
тАО06-01-2009 10:23 AM
Re: queue (FIFO) execution in HP UX
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 10:30 AM
тАО06-01-2009 10:30 AM
Re: queue (FIFO) execution in HP UX
I agree this is something you will have to build yourself.
If you do, you might be able to sell it.
There are some commercial job schedulers out there but I don't think they meet this specific need.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 10:44 AM
тАО06-01-2009 10:44 AM
Re: queue (FIFO) execution in HP UX
there? It should be relatively easy to rig
a VMS batch queue to manage the jobs, and
use RSH (or SSH, or something) to get the
jobs (commands) run on the HP-UX system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 03:29 PM
тАО06-01-2009 03:29 PM
Re: queue (FIFO) execution in HP UX
Thank you all for the quick response.
i actually found a command called mkfifo that might be helpful. are you familiar with this command?
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 04:17 PM
тАО06-01-2009 04:17 PM
SolutionYes, 'mkfifo()' makes a named pipe or "first-in-first-out" file. Data that is written into the pipe is buffered and read back in the same order as it was written.
One process should open the pipe for reading while a second process should open the pipe for writing. In this fashion, you will achieve a synchronization of read/write activity in FIFO order.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2009 11:49 PM
тАО06-01-2009 11:49 PM
Re: queue (FIFO) execution in HP UX
is there a way using mkfifo to insure the process run in FIFO but one after another. ie the next command runs only after the prev has completed.
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:13 AM
тАО06-02-2009 12:13 AM
Re: queue (FIFO) execution in HP UX
Only what you invent. A FIFO, a pipe, only serializes data. You could write into the pipe the name of the script to execute.
The reader could simply read the script name, then execute it, then remove the file.
I suppose you can use batch(1), and set the queue size to 1. See queuedefs(4).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2009 05:05 PM
тАО06-03-2009 05:05 PM
Re: queue (FIFO) execution in HP UX
i actually found an easy way of doing this. bascially instead of passing the command to pipe file i just pass the command string and then i have another deamon process reading and executing the strings one at a time.
thanks