05-04-2007
Once again,
Connected to someprocess@host3
>type message
> <--- since we are just seeing whether we can connect to this process, we will quit this bye
doing control C
OR
Cannot connect: connection refused
If I was doing this interactively,
I would type
./program process.1@host13
IF process.1 was doing what's it suppose to be doing, i would see
Connected to someprocess@host3
>type message
>
and I can type command and do stuff... and only way to quit out of that is to do control-C
But if you do get above message it means from my host to that process on host3, I am able to communicate and that's what I am trying to find out
If process.1 was not up, than I would see
Cannot connect: connection refused
and it will give me back the prompts.
Please let me know if needs more info..
I am just not sure if sending control c within loop is possible in the script or not
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am having difficulty sending a control sequence ESC&l5H (print to middle tray) to a HP printer (lp4).It is ignoring the command. I am using the following syntax in an executable file :
echo "'/033'&l5H" > /dev/lp4
lp -dlp4 filename
a) Is /033 'escape' ?
b) What is the correct syntax ? (5 Replies)
Discussion started by: ianc
5 Replies
2. Shell Programming and Scripting
I have the following statement in script:
find ${LANDING_FILE_DIR}${BTIME_FILENAME_PATTERN2} -print | while read file; do
...
done
When there are no files located by the find comand it returns:
"find: bad status-- /home/rnitcher/test/....." to the command line
How do I get control in... (3 Replies)
Discussion started by: mavsman
3 Replies
3. Shell Programming and Scripting
Hi,
I have taken a piece of code from a book, which is working as per the specification. The code....
for entry in *
do
if
then
echo $entry
fi
done
The sub-directories present in the current directory will be displayed while executing.
... (3 Replies)
Discussion started by: saravanakumar
3 Replies
4. Shell Programming and Scripting
I have an empty .gz file in archival directory. And I am redirecting to a dat file. My while loop is not getting ended. I need the solution.
cnt=0
while read line
do
cnt=`expr $cnt + 1`
echo "$ARCH_DIR/$line.gz" >> $DATA_DIR/$FILE_LIST_FILE_FEB
FILE_NAMES=${FILE_NAMES}"... (2 Replies)
Discussion started by: vinodh1978
2 Replies
5. UNIX for Dummies Questions & Answers
Hi All
How can i control for loop with two different variables in csh shell
Regards
Nikhil (1 Reply)
Discussion started by: Nikhilindurkar
1 Replies
6. Shell Programming and Scripting
I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends.
As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
7. Shell Programming and Scripting
Hi
I would like to exit the loop below on <Enter> even if it sleeps. Is it possible?
while true
do
my_procedure;
sleep 60
done
Thanks (7 Replies)
Discussion started by: zam
7 Replies
8. Shell Programming and Scripting
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Discussion started by: mrm5102
5 Replies
9. Shell Programming and Scripting
Here's my code:
awk -F '' 'NR==FNR {
if (/time/ && $5>10)
A=$2" "$3":"$4":"($5-01)
else if (/time/ && $5<01)
A=$2" "$3":"$4-01":"(59-$5)
else if (/time/ && $5<=10)
A=$2" "$3":"$4":0"($5-01)
else if (/close/) {
B=0
n1=n2;
... (2 Replies)
Discussion started by: klane
2 Replies
10. Shell Programming and Scripting
Hi,
Let's say I have a control file like this:
RHEL apple "echo apple"
RHEL bravo "ls -l bravo*"
RHEL church "chmod church.txt"
SUSE drive "chown user1 drive.txt"
SUSE eagle "echo "eagle flies""
SUSE feather "ls -l feather*"
HP-UX google "sed 's/^Google.*$/&\
ACTION: go to... (14 Replies)
Discussion started by: The Gamemaster
14 Replies
LEARN ABOUT LINUX
cosnotifychanneladmin_sequenceproxypushsupplier
CosNotifyChannelAdmin_SequenceProxyPushSupplier(3erl) Erlang Module Definition CosNotifyChannelAdmin_SequenceProxyPushSupplier(3erl)
NAME
CosNotifyChannelAdmin_SequenceProxyPushSupplier - This module implements the OMG CosNotifyChannelAdmin::SequenceProxyPushSupplier inter-
face.
DESCRIPTION
To get access to the record definitions for the structures use:
-include_lib("cosNotification/include/*.hrl").
This module also exports the functions described in:
* CosNotifyComm_NotifySubscribe
* CosNotification_QoSAdmin
* CosNotifyFilter_FilterAdmin
* CosNotifyChannelAdmin_ProxySupplier
EXPORTS
connect_sequence_push_consumer(SequenceProxyPushSupplier, PushConsumer) -> Reply
Types SequenceProxyPushSupplier = #objref
PushConsumer = #objref
Reply = ok | {'EXCEPTION', #'CosEventChannelAdmin_AlreadyConnected'{}} | {'EXCEPTION', #'CosEventChannelAdmin_TypeError'{}}
This operation connects a PushConsumer to the target object. If a connection already exists or the function psuh_structured_events
is not supported the exceptions AlreadyConnected or TypeError will be raised respectively.
suspend_connection(SequenceProxyPushSupplier) -> Reply
Types SequenceProxyPushSupplier = #objref
Reply = ok | {'EXCEPTION', #'CosNotifyChannelAdmin_ConnectionAlreadyInactive'{}} | {'EXCEPTION', #'CosNotifyChannelAdmin_Not-
Connected'{}}
This operation suspends the connection between the client and the target object. If no connection exists or the connection is
already suspended an exception is raised.
resume_connection(SequenceProxyPushSupplier) -> Reply
Types SequenceProxyPullConsumer = #objref
Reply = ok | {'EXCEPTION', #'CosNotifyChannelAdmin_ConnectionAlreadyInactive'{}} | {'EXCEPTION', #'CosNotifyChannelAdmin_Not-
Connected'{}}
If the connection have previously been suspended this operation must used if we want to resume the connection. If no object have
been connected or the connection already is active an exception is raised.
disconnect_sequence_push_supplier(SequenceProxyPushSupplier) -> ok
Types SequenceProxyPushSupplier = #objref
This operation cause the target object to close the connection and terminate.
Ericsson AB cosNotification 1.1.16 CosNotifyChannelAdmin_SequenceProxyPushSupplier(3erl)