Unix script that can spawn


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unix script that can spawn
# 1  
Old 09-23-2011
Unix script that can spawn

Hi

I need a unix script that can spawn 100 unix PIDs that each execute
the lgtst command as <Sid>adm within milliseconds.

Thanks in advance

Rgd
Ruud van Ruler
# 2  
Old 09-23-2011
Then consider writing a C program to fork 100 processes each executing the lgtst command...
This User Gave Thanks to shamrock For This Post:
# 3  
Old 09-23-2011
Snrru0: Well, good luck with that! I hope you find one.

I don't mean to be rude, Ruud, but this is not a script machine, where you put your question in one end and the answer comes out the other.

We want to help you, but we won't just churn out scripts for you.

What did you try up to now?
# 4  
Old 09-23-2011
Unix script that can spawn Reply to Thread

Quote:
Originally Posted by shamrock
Then consider writing a C program to fork 100 processes each executing the lgtst command...

thanks but I have to admit I am not quite familiar with Unix scripting so if you can provide the statements needed I would be grateful

rgds
Ruud van Ruler
# 5  
Old 09-23-2011
It appears you may have missed my reply.

Quote:
We want to help you, but we won't just churn out scripts for you.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expect script error : send: spawn id exp4 not open

Hi, I am executing a expect script in while loop for doing telnet on list of servers stored in file as below : expect script : #!/usr/bin/expect -f set timeout 20 set ip set port if { == 0} { send_user "Usage: scriptname ip port\n" exit 1 } #exp_internal 1 log_user 0 spawn... (3 Replies)
Discussion started by: omkar.jadhav
3 Replies

2. Shell Programming and Scripting

SPAWN Multiple Processes in Unix

Hi, I have three files in my IN directory.Each file should be copied 25 times using for loop.Each file processing should run in parallel?How to spawn multiple processes in unix?Any help would be appreciated. Thanks, Liyakath (7 Replies)
Discussion started by: liyakathali
7 Replies

3. UNIX for Advanced & Expert Users

spawn() Vs. fork()

what is diffenrence between spawn and fork ? "fork() system call spawns the processess" what is mean by this sentence. (1 Reply)
Discussion started by: anandgodse
1 Replies

4. Shell Programming and Scripting

Can 'spawn' command be used more than once in an expect script ?

Can 'spawn' script be used more than once in a given expect script ?? What I'm trying to do is, first log-into a remote server through one 'ssh' spawn com and then from there log-into another server using a secod 'ssh' spawn command. But this approach is not working... the second ssh attempt... (1 Reply)
Discussion started by: clakkad
1 Replies

5. UNIX for Advanced & Expert Users

Spawn a new unix window by command

Hi Experts, I hav a question for you.. Can we open a new window(SunOS 5.10,Putty) by a unix_command from the one we're on? Is it possible? Thanks. (2 Replies)
Discussion started by: Hunter85
2 Replies

6. Shell Programming and Scripting

Expect Script Error invalid spawn id (6)

Hi everybody, We are trying to connect to a server and to a router using an .expect script that automatically authenticate the username and password needed. The error is that we cannot connect to the server using ssh AND we cannot connect to the router using either telnet or go commands from the... (1 Reply)
Discussion started by: omoyne
1 Replies

7. UNIX for Dummies Questions & Answers

Bash: Regulating the number of processes a script can spawn

I've been working on some scripts in which I spawn some background processes. I'd like to be able to limit the number of processes, but have my script spawn additional processes as previous tasks finish. So, let's say I have 20 tasks to complete. Any given task could take from 1 to 10 minutes. ... (7 Replies)
Discussion started by: treesloth
7 Replies

8. Solaris

Spawn Not Found

I need to run the spawn command but when I typed it in, I got "ksh: spawn: not found". So, I downloaded spawn-fcgi but it required to be compiled first. The compile failed when I tried it. I need a copy that's ready to be used. Unix system info: OS: Sun Solaris 2.8 Shell: ksh Does... (4 Replies)
Discussion started by: april
4 Replies

9. Shell Programming and Scripting

shell script for getting pid of spawn processes from shell

Hi, I am new this forum. I request you peoples help in understanding and finding some solution to my problem. Here it goes: I need to perform this set of actions by writing a shell script. I need to read a config file for the bunch of processes to execute. I need to fecth the pid of... (4 Replies)
Discussion started by: sachin4sachi
4 Replies

10. UNIX for Dummies Questions & Answers

spawn: not found

Hi, I'm very new to UNIX. I need to FTP a file to a remote host. It happens through a port 2222.I need to automate the process as the SCP command prompts for a password. 1) The regular ftp, tells me that the connection is refused 2) The sftp login@remotehost gives me... (0 Replies)
Discussion started by: sandy.cog
0 Replies
Login or Register to Ask a Question