12-16-2008
thx for the quick reply, sorry it was a typo, it shd be ps -ef | grep -c rename.sh , and i could see thousands of such processes,
i did try running in sh -x mode but it would not give any output but just hang and after i press ctrl + c it would take time to come out but i guess would not be properly killed.
i did check the logs and it shows that the script goes in loops and starts multiple processes of itself.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Not sure what has changed in the Unix environment.
The following script which was working is now not working.
#!/usr/bin/ksh
# -----------------------------------------------------------------------------
# File: monitor_db.sh
#
#... (1 Reply)
Discussion started by: uuser
1 Replies
2. Programming
I know how to read and write if i have a forked process with only one child. However what is involved with reading and writing with many forked processes. Say one parent that forks 5 children, and needs to communicate with all 5 in half duplex.
int temp, counter=0;
do{
pipe(temp);
... (5 Replies)
Discussion started by: steveneliuk
5 Replies
3. Programming
Hi,
From within my C++ program, I fork a child process and execl an ftp session (solaris), like this :
std::string szStartCmd = "ftp -i -n -v 192.168.149.31";
int nExecRes = execl("/bin/sh", "sh", "-c", szStartCmd.c_str(), (char *)0);
I use 2 pipes to communicate between my... (7 Replies)
Discussion started by: KittyJ
7 Replies
4. UNIX for Advanced & Expert Users
Hi,
I have an application where if it runs indivisually could able to execute commands (like system("ls")) and could able to execute tcl script.
Same application if started from health monitor process (From health monitor process my application will be forked), it could not execute the... (1 Reply)
Discussion started by: chandrutiptur
1 Replies
5. Shell Programming and Scripting
I am relatively new at scripting in linux. Most of my scripting knowledge comes from doing batch scripting in windows.
Anyway, I have this script I'm trying to write that will install a program called Nagios along with a few other packages. I know it has to be something at the beginning that is... (4 Replies)
Discussion started by: nanite51
4 Replies
6. Programming
This needs to work on HPUX and Linux.
I do a fork and create a child process. During execution of the child process, it is possible child become lost or get killed. That is the reason why I create the child process. However if the child process doesnt get killed, I do want to know the return... (2 Replies)
Discussion started by: usustarr
2 Replies
7. Shell Programming and Scripting
Hi,
Closing the thread (3 Replies)
Discussion started by: dbashyam
3 Replies
8. Shell Programming and Scripting
can someone please explain to me what i'm doing wrong with this code:
WELT=$(awk '(($1 ~ "^${caag}$") || ($2 ~ "^${caag}$"))' /tmp/Compare.TEXT)
when run from the command line, it works. but it seems to be having a problem doing the comparison when variables are involved.
i tested from... (1 Reply)
Discussion started by: SkySmart
1 Replies
9. Shell Programming and Scripting
Hi,
I have a problem where I need to make this input:
nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a
nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b
look like this output:
nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies
10. Shell Programming and Scripting
I am trying to check multiple server's "uptime" in a loop over "ssh".
When I execute multiple ssh commands with hard coded servernames script is executing fine.
But when I pass server names using while loop, script is exiting after checking first server's status, why?
# serverList... (8 Replies)
Discussion started by: kchinnam
8 Replies
LEARN ABOUT DEBIAN
net::dbus::annotation
Net::DBus::Annotation(3pm) User Contributed Perl Documentation Net::DBus::Annotation(3pm)
NAME
Net::DBus::Annotation - annotations for changing behaviour of APIs
SYNOPSIS
use Net::DBus::Annotation qw(:call);
my $object = $service->get_object("/org/example/systemMonitor");
# Block until processes are listed
my $processes = $object->list_processes("someuser");
# Just throw away list of processes, pretty pointless
# in this example, but useful if the method doesn't have
# a return value
$object->list_processes(dbus_call_noreply, "someuser");
# List processes & get on with other work until
# the list is returned.
my $asyncreply = $object->list_processes(dbus_call_async, "someuser");
... some time later...
my $processes = $asyncreply->get_data;
DESCRIPTION
This module provides a number of annotations which will be useful when dealing with the DBus APIs. There are annotations for switching
remote calls between sync, async and no-reply mode. More annotations may be added over time.
METHODS
dbus_call_sync
Requests that a method call be performed synchronously, waiting for the reply or error return to be received before continuing.
dbus_call_async
Requests that a method call be performed a-synchronously, returning a pending call object, which will collect the reply when it
eventually arrives.
dbus_call_noreply
Requests that a method call be performed a-synchronously, discarding any possible reply or error message.
AUTHOR
Daniel Berrange <dan@berrange.com>
COPYRIGHT
Copright (C) 2006-2011, Daniel Berrange.
SEE ALSO
Net::DBus, Net::DBus::RemoteObject
perl v5.14.2 2011-06-30 Net::DBus::Annotation(3pm)