Sponsored Content
Top Forums Shell Programming and Scripting Expect Issue Serial Forground Execution vs Concurrent Background Execution Post 302353050 by JerryHone on Monday 14th of September 2009 11:18:52 AM
Old 09-14-2009
You may well be right, but it's easy to test...try putting some sleeps in your script, and also use send_slow to send text at more like user typing speed.
Do you have a limit on the number of connections that you can connect to on any specific remote host, so it disconnected those it doesn't want?
 

10 More Discussions You Might Find Interesting

1. Programming

execution in background

hey im having trouble understanding how to execute commands in the background. i did some research and saw that you only have to fork and not wait for the child to finish. in another case you have to change the process group. i ve really tried both of them but i just cant get them to work. ... (0 Replies)
Discussion started by: mile1982
0 Replies

2. UNIX for Dummies Questions & Answers

execution without using (./)

I want to execute a shell script without ./ symbol. For example: ./my_script ===== my_script (both of them can execute my script) both of them are the same as result. (2 Replies)
Discussion started by: mehmetned
2 Replies

3. Shell Programming and Scripting

Background execution of a script

Hi All, Have a script called FTPIN-xx.sh. It does stuff and when all is done, it is to execute another. However, I'd like to have it execute the second script in the background or in a fashion that would allow my script to complete without having to wait. I'm robbing the command from how I... (2 Replies)
Discussion started by: Cameron
2 Replies

4. UNIX for Dummies Questions & Answers

Profile execution issue

Hi I have a profile execution issue, I log on to a linux machine , then i do sudo to another user as sudo su - <username> , then <username> .profile executes properly but when I type something I loose all environment varaible and my prompt changes to '$' loosing the PS1 value that I have... (1 Reply)
Discussion started by: malavm
1 Replies

5. Shell Programming and Scripting

Execution issue with shell script - works in a different environment

Hi I get the following error while executing the shell script. I did not get an error when I ran the script in a different environment (unix server). str-token.ksh: 0403-057 Syntax error at line 20 : `(' is not expected. This is the line which gives error string=(${pos_array}) Please find... (3 Replies)
Discussion started by: hidnana
3 Replies

6. Shell Programming and Scripting

Concurrent execution

Hi all, I have a folder with sql files that need to be inserted in a DB with SQL*Plus. The thing is that it takes too long to insert them all one by one, so I want to insert them five at a time. Currently what I use is this: for $FILENAME in *.sql do sqlplus -s $DBUSER@$SID << EOF ... (0 Replies)
Discussion started by: Tr0cken
0 Replies

7. Shell Programming and Scripting

Multiple Interval cron issue with order of execution

55,0 5,6 * * * myScript This cron task will execute on 5:00AM, 5:55AM, 6:00AM and 6:55AM. Is there any possibility to make it run only in the order specified such as 5:55AM and 6:00AM (basically only on the 2 intervals) ? (1 Reply)
Discussion started by: vikram3.r
1 Replies

8. Shell Programming and Scripting

Expect script Execution Problems .. Help!!!

Hi Guys, I am writing the expect script which take input from the txt file and check whether that file is present over the Sftp or not.If yes then delete other wise check the next one.. I am able to do comparison online for single file... Please also note still i didn't try to implement... (1 Reply)
Discussion started by: hackerdilli
1 Replies

9. Shell Programming and Scripting

Python Thread Execution Issue . . .

Greetings! I set up a basic threading specimen which does the job:#!/usr/bin/python import threading class a(threading.Thread): def __init__(self): threading.Thread.__init__(self) def run(self): print("thread a finished") class b(threading.Thread): ... (0 Replies)
Discussion started by: LinQ
0 Replies

10. Shell Programming and Scripting

EXPECT | Shutdown MITEL by Serial.

Hi everybody, I'm from Spain so excuse my english. I'm Trying to Shutdown the Mitel 3300 CXI by serial port. I'm trying to do this with the EXPECT software. The problem is: The connection is done. The "shutdown" is done BUT the Mitel auto-boot if the script does not type... (0 Replies)
Discussion started by: Jonsaldana
0 Replies
tcpserver(1)                                                  General Commands Manual                                                 tcpserver(1)

NAME
tcpserver - accept incoming TCP connections SYNOPSIS
tcpserver [ -146jpPhHrRoOdDqQv ] [ -climit ] [ -xrules.cdb ] [ -Bbanner ] [ -ggid ] [ -uuid ] [ -bbacklog ] [ -llocalname ] [ -ttimeout ] [ -Iinterface ] host port program [ arg ... ] DESCRIPTION
tcpserver waits for connections from TCP clients. For each connection, it runs program with the given arguments, with descriptor 0 reading from the network and descriptor 1 writing to the network. The server's address is given by host and port. host can be 0, allowing connections from any host; or a particular IP address, allowing connections only to that address; or a host name, allowing connections to the first IP address for that host. port may be a numeric port number or a port name. If port is 0, tcpserver will choose a free port. tcpserver sets up several environment variables, as described in tcp-environ(5). tcpserver exits when it receives SIGTERM. OPTIONS
-climit Do not handle more than limit simultaneous connections. If there are limit simultaneous copies of program running, defer acceptance of a new connection until one copy finishes. limit must be a positive integer. Default: 40. -xrules.cdb Follow the rules compiled into rules.cdb by tcprules. These rules may specify setting environment variables or rejecting connec- tions from bad sources. tcpserver does not read rules.cdb into memory; you can rerun tcprules to change tcpserver's behavior on the fly. -Bbanner Write banner to the network immediately after each connection is made. tcpserver writes banner before looking up TCPREMOTEHOST, before looking up TCPREMOTEINFO, and before checking rules.cdb. This feature can be used to reduce latency in protocols where the client waits for a greeting from the server. -ggid Switch group ID to gid after preparing to receive connections. gid must be a positive integer. -uuid Switch user ID to uid after preparing to receive connections. uid must be a positive integer. -1 After preparing to receive connections, print the local port number to standard output. -4 Fall back to IPv4 sockets. This is necessary for terminally broken systems like OpenBSD which will not let IPv6 sockets connect to V4-mapped IPv6 addresses. Please note that this also applies to DNS lookups, so you will have to use an DNS resolver with an IPv6 address to accept IPv6 connections. Use DNSCACHEIP to set the DNS resolver IP dynamically. -6 Force IPv6 mode in UCSPI environment variables, even for IPv4 connections. This will set $PROTO to TCP6 and put IPv4-mapped IPv6 addresses in TCPLOCALIP and TCPREMOTEIP. -Iinterface Bind to the network interface interface ("eth0" on Linux, for example). This is only defined and needed for IPv6 link-local addresses. -bbacklog Allow up to backlog simultaneous SYN_RECEIVEDs. Default: 20. On some systems, backlog is silently limited to 5. See listen(2) for more details. -o Leave IP options alone. If the client is sending packets along an IP source route, send packets back along the same route. -O (Default.) Kill IP options. A client can still use source routing to connect and to send data, but packets will be sent back along the default route. -d (Default.) Delay sending data for a fraction of a second whenever the remote host is responding slowly, to make better use of the network. -D Never delay sending data; enable TCP_NODELAY. This is appropriate for interactive connections. -q Quiet. Do not print any messages. -Q (Default.) Print error messages. -v Verbose. Print all available messages. DATA-GATHERING OPTIONS -p Paranoid. After looking up the remote host name, look up the IP addresses for that name, and make sure one of them matches TCPRE- MOTEIP. If none of them do, unset TCPREMOTEHOST. -P (Default.) Not paranoid. -h (Default.) Look up the remote host name and set TCPREMOTEHOST. -H Do not look up the remote host name. -llocalname Do not look up the local host name; use localname for TCPLOCALHOST. -r (Default.) Attempt to obtain TCPREMOTEINFO from the remote host. -R Do not attempt to obtain TCPREMOTEINFO from the remote host. -ttimeout Give up on the TCPREMOTEINFO connection attempt after timeout seconds. Default: 26. SEE ALSO
argv0(1), fixcr(1), recordio(1), tcpclient(1), tcprules(1), listen(2), tcp-environ(5) tcpserver(1)
All times are GMT -4. The time now is 04:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy