- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to create Multiple commands from Shell scr...
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
Forums
Discussions
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
12-09-2002 10:12 AM
12-09-2002 10:12 AM
How to create Multiple commands from Shell script
Is there a way inside a shell script to create say 40 opcmsg's at the same time.
Unfortunately all of the looping facilities inside a shell script do not create them fast enough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 10:18 AM
12-09-2002 10:18 AM
Re: How to create Multiple commands from Shell script
#!/bin/ksh
ftp -n
user
bin
prompt
mput *
FTP
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 10:19 AM
12-09-2002 10:19 AM
Re: How to create Multiple commands from Shell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 10:22 AM
12-09-2002 10:22 AM
Re: How to create Multiple commands from Shell script
One idea that struck me is to use at command. Use the same shell script but instead of running them together, schedule them all together at the same time.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 10:30 AM
12-09-2002 10:30 AM
Re: How to create Multiple commands from Shell script
opcmsg & opcmsg & opcmsg & ...
I would try to stack 40 of these in one command line. They should execute asynchronous.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 10:58 AM
12-09-2002 10:58 AM
Re: How to create Multiple commands from Shell script
I think the expense of creating a new process and switch it to the CPU will always last too long, so you will not be able to "flood" messages with creating processes, that send omne message each.
There has to be a lib and a header file and a documentation and may be with a twentyliner in C you will be able to create a single (or five) process(es) and call the message-call in a loop, which will be fast enough to simulate many messages.
Hope this helps
Volker