I have a really simple script which I want to run forever, inside the loop it runs a C application which if it exits should restart.
For some reason the SCF C application coredumps and the script is exiting.
I'm not a shell script expert by any means but my understanding was that it should loop forever regardless of what happens in the SCF app ?
Do you know any reason why the script would jump out the loop and exit.
Thanks
Marvin
Last edited by radoulov; 07-23-2010 at 05:52 PM..
Reason: Code tags, please!
I am running an Ubuntu Gutsy laptop with Advanced Compiz fusion options enabled. I am using xdotool to simulate keyboard input in order to rotate through multiple desktops.
I am looking for a way to kill a while true loop when the Enter key (or Control+C if it is easier) is pushed when the... (2 Replies)
All,
I'm having a problem w/this function. Specifically, I want to call another function (get_stats) when the process in the else completes (the initial if and the elsif seem to work fine). But what's happening is the get_stats function call is running after the else runs only once, NOT when it... (8 Replies)
Just looking at my ethernet interface.. I see this response... what does this mean...?
ipconfig...
lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft... (0 Replies)
I wonder if someone could help me here. I am trying to find a way of exiting from a loop but not exiting me from the script for example
#!/bin/ksh
# ************* FUNCTIONS ******************
function1() { #ping test
ping $1 2 > /dev/null
if ; then
... (13 Replies)
Greeting,
The following script completes after reading only one record from the input file that contains many records. I commented out the "ssh" and get what I expect, an echo of all the records in the input.txt file. Is ssh killing the file handle?
On the box "uname -a" gives "SunOS... (2 Replies)
Hi my code looks like:
if test $STEP -le 10
then
.
.
ls -1d AM*-OUT|while read MYDIR
do
cd $MYDIR
ls |tail -n1| while read MYFILE
do
.
.
if test -s $MYFILE
then
sqlldr ....
rc=$?
if test $rc -ne 0 (3 Replies)
Hi I am having a problem exiting a WHILE loop. I am on a Sun server using ksh.
I am running a Veritas Cluster Software (High Availablity) command to obtain a group status and grepping the command output for status "G" which means that the filesystem is frozen and therefore not available to... (3 Replies)
Hello All,
I was trying to install one rpm and it failed due to missing dependencies, when I try to look at the dependencies and try to install them it is asking for 100+ dependencies, did any one ever face this problem? how can we fix this?
rpm -ivh /var/tmp/erlang-R15B-02.1.el6.x86_64.rpm... (0 Replies)
We are trying to design a flow so that an ETL job shouldn't start until the previous job completes. The script we have written is
while ; do sleep 2; done
The loop however exits even when the process is actually running. Why could this be happening? (12 Replies)
Hi ,
I am processing some files using below shell script the problem for loop exit after processing some files even though it exist.After modifying file.txt and rerunning the script and its running .Any Advise
for i in `cat /xx/file.txt |tr -s "," '\n' ` ; do
echo $i... (3 Replies)
Discussion started by: mohan705
3 Replies
LEARN ABOUT DEBIAN
jifty::script::server
Jifty::Script::Server(3pm) User Contributed Perl Documentation Jifty::Script::Server(3pm)NAME
Jifty::Script::Server - A standalone webserver for your Jifty application
SYNOPSIS
jifty server
jifty server --port 6666
jifty server --stop
DESCRIPTION
Starts and stops Jifty's standalone web server.
options
--port The port to run the server on. Overrides the port in the config file, if it is set there. The default port is 8888.
--user USER
The user to become after binding to the port. It is advised that you use this when binding to low ports, instead of running as
"root". This option only works if the server is using a Net::Server subclass.
--group GROUP
The group to become after binding to the port. Like "--user", this option only works if the server is using a Net::Server
subclass.
--host HOSTNAME
The host to bind to. This option only works if the server is using a Net::Server subclass.
--stop Stops the server, if it is running. This is accomplished by reading the PID from "var/jifty-server.pid"
--restart
restart the server, if it is running. This is accomplished by killing the child pid, and let parent pid create a new one
--sigready SIGNAL
Sets the signal number that should be sent to the server's parent process when the server is ready to accept connections.
--quiet Reduces the amount of debug output sent by the server
--dbiprof
Turns on DBI profiling; see DBI::ProfileDumper.
--help Print a brief help message and exits.
--man Prints the manual page and exits.
DESCRIPTION
When you're getting started with Jifty, this is the server you want. It's lightweight and easy to work with.
METHODS
run
"run" takes no arguments, but starts up a Jifty server process for you.
perl v5.14.2 2010-12-08 Jifty::Script::Server(3pm)