Visit Our UNIX and Linux User Community


shell script getting stopped at the middle.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting shell script getting stopped at the middle.
# 1  
Old 10-02-2012
shell script getting stopped at the middle.

I have created a shell scrit to run the informatica workflows sequentially.In the script i am executing 7 workflows sequentially after running 4 workflows the scrpt getting stop and it is not continuing next step evn it is updating logs.4th workflow will take more time to finish is that making issue?
below is the script
Code:
#!/usr/bin/sh
Scripts=/pdm/data002/
mail_recipient=vivek.k.s@merck.com
qc_recipients=vivek.k.s@merck.com
LOGFILE=$Scripts/p3_quest.log
Server=is_ghhdev9
Domain=ghhetl9_domain_uctvd618
SecurityDomain=Native
Folder=PDMQC_Release
User=pdm_admin
Password=password
ParamFile=/ghhetl9/stage001/dev/ExtProc/PDM/PDM_QUEST.par

. /usr/local/bin/pdmetl.profile 
#*************** w_pdm_quest_new_plan1 *****************************************
$Scripts/mailpost "STARTING PRESCRIBER Prescrption Plan BUILDS " $mail_recipient $LOGFILE 
echo "w_pdm_quest_new_plan1" >> $LOGFILE
date >> $LOGFILE
pmcmd startworkflow -sv $Server -d $Domain -usd $SecurityDomain -u $User -p $Password  -f $Folder -paramfile $ParamFile -wait w_pdm_quest_new_plan1 >> $LOGFILE 
k=$? 
if test $k -gt 0 
then 
  echo "w_pdm_quest_new_plan1 Failed" >> $LOGFILE 
  $Scripts/mailpost "w_pdm_quest_new_plan1 failed" $mail_recipient $LOGFILE 
  exit 2 
fi 
echo "w_pdm_quest_new_plan1 completed at" >> $LOGFILE 
sleep 150
date >> $LOGFILE 
#*************** w_pdm_quest_new_plan *****************************************
echo "w_pdm_quest_new_plan" >> $LOGFILE
date >> $LOGFILE
pmcmd startworkflow -sv $Server -d $Domain -usd $SecurityDomain -u $User -p $Password  -f $Folder -paramfile $ParamFile -wait w_pdm_quest_new_plan >> $LOGFILE 
k=$? 
if test $k -gt 0 
then 
  echo "w_pdm_quest_new_plan Failed" >> $LOGFILE 
  $Scripts/mailpost "w_pdm_quest_new_plan failed" $mail_recipient $LOGFILE 
  exit 2 
fi 
echo "w_pdm_quest_new_plan completed at" >> $LOGFILE 
sleep 150
date >> $LOGFILE 
#*************** w_pdm_quest_valid_prod_price*****************************************
echo "w_pdm_quest_valid_prod_price" >> $LOGFILE
date >> $LOGFILE
pmcmd startworkflow -sv $Server -d $Domain -usd $SecurityDomain -u $User -p $Password  -f $Folder -paramfile $ParamFile -wait w_pdm_quest_valid_prod_price >> $LOGFILE 
k=$? 
if test $k -gt 0 
then 
  echo "w_pdm_quest_valid_prod_price Failed" >> $LOGFILE 
  $Scripts/mailpost "w_pdm_quest_valid_prod_price failed" $mail_recipient $LOGFILE 
  exit 2 
fi 
echo "w_pdm_quest_valid_prod_price completed at" >> $LOGFILE 
sleep 150
date >> $LOGFILE 
#*************** w_pdm_quest *****************************************
echo "w_pdm_quest Started at " >> $LOGFILE
date >> $LOGFILE
pmcmd startworkflow -sv $Server -d $Domain -usd $SecurityDomain -u $User -p $Password  -f $Folder -paramfile $ParamFile -wait w_pdm_quest >> $LOGFILE 
k=$? 
if test $k -gt 0 
then 
  echo "w_pdm_quest Failed" >> $LOGFILE 
  $Scripts/mailpost "w_pdm_quest failed" $mail_recipient $LOGFILE 
  exit 2 
fi 
echo "w_pdm_quest completed at" >> $LOGFILE 
sleep 150
date >> $LOGFILE 
#*************** w_pdm_quest_plan_dim *****************************************
echo "w_pdm_quest_plan_dim Started at " >> $LOGFILE
date >> $LOGFILE
pmcmd startworkflow -sv $Server -d $Domain -usd $SecurityDomain -u $User -p $Password  -f $Folder -paramfile $ParamFile -wait w_pdm_quest_plan_dim >> $LOGFILE 
k=$? 
if test $k -gt 0 
then 
  echo "w_pdm_quest_plan_dim Failed" >> $LOGFILE 
  $Scripts/mailpost "w_pdm_quest_plan_dim failed" $mail_recipient $LOGFILE 
  exit 2 
fi 
echo "w_pdm_quest_plan_dim completed at" >> $LOGFILE 
sleep 150
date >> $LOGFILE 
#*************** w_pdm_quest_period_dim *****************************************
echo "w_pdm_quest_period_dim Started at " >> $LOGFILE
date >> $LOGFILE
pmcmd startworkflow -sv $Server -d $Domain -usd $SecurityDomain -u $User -p $Password  -f $Folder -paramfile $ParamFile -wait w_pdm_quest_period_dim >> $LOGFILE 
k=$? 
if test $k -gt 0 
then 
  echo "w_pdm_quest_period_dim Failed" >> $LOGFILE 
  $Scripts/mailpost "w_pdm_quest_period_dim failed" $mail_recipient $LOGFILE 
  exit 2 
fi 
echo "w_pdm_quest_period_dim completed at" >> $LOGFILE 
sleep 150
date >> $LOGFILE 
#*************** w_pdm_quest_qc *****************************************
echo "w_pdm_quest_qc Started at " >> $LOGFILE
date >> $LOGFILE
pmcmd startworkflow -sv $Server -d $Domain -usd $SecurityDomain -u $User -p $Password  -f $Folder -paramfile $ParamFile -wait w_pdm_quest_qc >> $LOGFILE 
k=$? 
if test $k -gt 0 
then 
  echo "w_pdm_quest_qc Failed" >> $LOGFILE 
  $Scripts/mailpost "w_pdm_quest_qc failed" $mail_recipient $LOGFILE 
  exit 2 
fi 
echo "w_pdm_quest_qc completed at" >> $LOGFILE 
date >> $LOGFILE 
$Scripts/mailpost "Prescriber Prescription plan Job Completed" $mail_recipient $LOGFILE


Last edited by Franklin52; 10-02-2012 at 10:00 AM.. Reason: Please use code tags for data and code samples
# 2  
Old 10-04-2012
Add ' -x' to the #! first line and see what comes out stderr.

Or find the hanging command and run "truss/tusc/strace -faeo /tmp/$$.tr -wall -rall -p PID" on it to see what it is doing, system-call wise.

If that is ineffective, run the hanging command under truss/tusc/strace in place of '-p PID' in your script, so you can see what it did last before stopping.
This command is great - no need for source or pre-run settings, just tap onto your running processes and see what they are up to.
You can terminate the truss -p without affecting the process, but it does slow while you are attached!
Code:
$ tusc -faeo /tmp/date.tr -wall -rall date 
Thu Oct  4 15:36:05 EDT 2012
$ cat /tmp/date.tr
execve(0x7b0f3240, 0x7b0f2d30, 0x7b0f2d38) ............... [entry]
                              argv[0] @ 0x7b0f0024: "date"
                               env[0] @ 0x7b0f0029: "_=/home/myid/myroot/usr/local/bin/tusc"
                               env[1] @ 0x7b0f0061: "MANPATH=/usr/contrib/man:/usr/dt/share/man:/usr/local/man:/usr/share/man:/cmeduc/ap_ofapm/man:/opt/CC/share/man:/opt/OV/man:/opt/aCC/share/man:/opt/ansic/share/man:/opt/audio/share/man:/opt/blinklink/obsolete/share/man:/opt/blinklink/share/man:/opt/cmom/man:/opt/graphics/common/man:/opt/graphics/starbase/share/man:/opt/hparray/share/man:/opt/ignite/share/man:/opt/image/share/man:/opt/imake/man:/opt/java1.4.2.12/man:/opt/java1.4.2/man:/opt/langtools/share/man:/opt/pd/share/man:/opt/perf/man:/opt/pred/share/man:/opt/resmon/share/man:/opt/sna/share/man:/opt/softbench/share/man:/opt/upgrade/share/man:/cmwork_11x/vdinavah/lpw_ca_mw/0900.old/hpux.old/man:/cmwork_11x/vdinavah/lpw_ca_mw/0900.old/hpux.old/source/man:/appl/atria.old/doc/man:/appl/banktools/blagent/man:/appl/banktools/tivoli/lcf/bin/hpux10/JRE/DMAE/man:/appl/cmvc/home/cmtools/03/man:/appl/informix/home/inftools/man:/appl/informix/isa1.20.UC1/httpd/man:/appl/informix/isa1.20.UC1/perl/man:/appl/mqm/man:/appl/omniguard/TSS/man:/appl/perl5.old/man:/appl/per"
                               env[2] @ 0x7b0f2201: "LANG=C"
                               env[3] @ 0x7b0f2208: "CMVCSTARTUP=1"
                               env[4] @ 0x7b0f2216: "SSH2_SFTP_LOG_FACILITY=-1"
                               env[5] @ 0x7b0f2230: "NLSPATH=:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N:/usr/lib/nls/C/%N"
                               env[6] @ 0x7b0f2335: "PAGER=pg"
                               env[7] @ 0x7b0f233e: "FPATH=/bin:/usr/cmvc/cmtools/bin"
                               env[8] @ 0x7b0f235f: "SHLIB_PATH=/appl/tuxedo/8.0.X8/lib:/usr/lib:/usr/local/lib:/home/myid/myroot/usr/local/lib:/home/myid/myroot/opt/regex/lib:/appl/sybase/OCS-12_0.10733/lib:/usr/lib/Motif1.2:/appl/IBMdb2/V8.1/lib:/appl/informix/7.31.UC5/lib:/appl/informix/7.31.UC5/lib/cli:/appl/informix/7.31.UC5/lib/esql"
                               env[9] @ 0x7b0f24a1: "PATH=/appl/tuxedo/8.0.X8/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/appl/uas/ssh_3.2.3/bin:/etc:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/bin/X11:/usr/vue/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/opt/hparray/bin:/opt/resmon/bin:/opt/pred/bin:/opt/perf/bin:/opt/OV/bin/OpC:/opt/ignite/binpa:/opt/CC/bin:/opt/java1.3/bin:/opt/langtools/bin:/admin1/hpbin:/admin1/bin:/appl/sybase/OCS-12_0.10733/bin:/appl/informix/7.31.UD3.SDK280X3/bin:/appl/IBMdb2/V8.1/bin:/appl/db2cnt8/sqllib/adm:/appl/IBMdb2/V8.1/misc:/appl/cmvc/home/cmtools/1401/bin:/appl/cmvc/home/cmtools/1401/etc:/usr/sbin:/home/myid/bin:/home/myid/myroot/usr/local/bin:."
                               env[10] @ 0x7b0f275c: "LC_ALL=C"
                               env[11] @ 0x7b0f2765: "COLUMNS=80"
                               env[12] @ 0x7b0f2770: "CMVC_BECOME=myid"
                               env[13] @ 0x7b0f2784: "INFVER=7.3S"
                               env[14] @ 0x7b0f2790: "SITE=myhost"
                               env[15] @ 0x7b0f279e: "TUXDIR=/appl/tuxedo/8.0.X8"
                               env[16] @ 0x7b0f27b9: "ENV_FILE=/home/myid/.profile"
                               env[17] @ 0x7b0f27dd: "WINDOWID=12582926"
                               env[18] @ 0x7b0f27ef: "EDITOR=/home/myid/bin/vix"
                               env[19] @ 0x7b0f2810: "HISTFILE=/home/myid/t/.sh_hist"
                               env[20] @ 0x7b0f2836: "CLASSPATH=/appl/db2cnt8/sqllib/java/db2java.zip:/appl/db2cnt8/sqllib/java/db2jcc.jar:/appl/db2cnt8/sqllib/java/sqlj.zip:/appl/db2cnt8/sqllib/function:/appl/db2cnt8/sqllib/java/db2jcc_license_cisuz.jar:/appl/db2cnt8/sqllib/java/db2jcc_license_cu.jar:."
                               env[21] @ 0x7b0f2931: "LOGNAME=myid"
                               env[22] @ 0x7b0f2941: "MAIL=/var/mail/myid"
                               env[23] @ 0x7b0f2958: "HOSTNAME=myhost"
                               env[24] @ 0x7b0f296a: "BOX=MYHOST"
                               env[25] @ 0x7b0f2977: "COBCPY=:/appl/tuxedo/8.0.X8/cobinclude"
                               env[26] @ 0x7b0f299e: "PS1=myhost-ttypf-$PWD
$ "
                               env[27] @ 0x7b0f29b9: "COBOPT=-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"
                               env[28] @ 0x7b0f29fc: "VWSPATH=/appl/db2cnt8/sqllib"
                               env[29] @ 0x7b0f2a19: "CMVCT_HOME=/usr/cmvc/cmtools"
                               env[30] @ 0x7b0f2a36: "SYBASE=/appl/sybase"
                               env[31] @ 0x7b0f2a4a: "USER=myid"
                               env[32] @ 0x7b0f2a57: "CMVCMODE=PROD"
                               env[33] @ 0x7b0f2a65: "VNCDESKTOP=myhost:3 (myid)"
                               env[34] @ 0x7b0f2a85: "DB2_HOME=/appl/db2cnt8"
                               env[35] @ 0x7b0f2a9c: "DISPLAY=:3.0"
                               env[36] @ 0x7b0f2aa9: "SHELL=/usr/bin/ksh"
                               env[37] @ 0x7b0f2abc: "SSH2_CLIENT=10.124.61.90 4424 171.186.182.236 22"
                               env[38] @ 0x7b0f2aed: "TIMEOUT=0"
                               env[39] @ 0x7b0f2af7: "HISTSIZE=32767"
                               env[40] @ 0x7b0f2b06: "TMOUT=0"
                               env[41] @ 0x7b0f2b0e: "LOGDIR=/usr/cmvc/logs"
                               env[42] @ 0x7b0f2b24: "CMVC_HOME="
                               env[43] @ 0x7b0f2b2f: "HOME=/home/myid"
                               env[44] @ 0x7b0f2b46: "SYBASEDIR=/appl/sybase/OCS-12_0.10733"
                               env[45] @ 0x7b0f2b6c: "CMVC_VCBIN=/usr/bin"
                               env[46] @ 0x7b0f2b80: "INFORMIXDIR=/appl/informix/7.31.UD3.SDK280X3"
                               env[47] @ 0x7b0f2bad: "DB2INSTANCE=db2cnt8"
                               env[48] @ 0x7b0f2bc1: "NDMAPICFG=/appl/cduser/ndm/ndm/cfg/cliapi/ndmapi.cfg"
                               env[49] @ 0x7b0f2bf6: "FCEDIT=/home/myid/bin/vix"
                               env[50] @ 0x7b0f2c17: "TERM=xterm"
                               env[51] @ 0x7b0f2c22: "TTY=ttypf"
                               env[52] @ 0x7b0f2c2c: "CMVC_NFS_DISABLE=YES"
                               env[53] @ 0x7b0f2c41: "PWD=/home/myid"
                               env[54] @ 0x7b0f2c57: "MAKEDIR=/usr/cmvc/cmtools/Make"
                               env[55] @ 0x7b0f2c76: "TZ=EST5EDT"
                               env[56] @ 0x7b0f2c81: "SYBASE_OCS=OCS-12_0.10733"
                               env[57] @ 0x7b0f2c9b: "ENV=${ENV_FILE[ (_$- = 1) + (_ = 0) - (_$- != _${-%%*i*}) ]}"
                               env[58] @ 0x7b0f2cd8: "ZPROFILED=1"
                               env[59] @ 0x7b0f2ce4: "LINES=25"
                               env[60] @ 0x7b0f2ced: "INFORMIXSERVER=infsvdev07"
                               env[61] @ 0x7b0f2d07: "A__z=-5TMOUT"
execve("/usr/bin/date", 0x7b0f2d30, 0x7b0f2d38) .......... = 0 [32-bit]
utssys(0x7b0f4ea0, 0, 0) ................................. = 0
open("/usr/lib/dld.sl", O_RDONLY, 026374) ................ = 4
read(4, 0x7b0f4efc, 128) ................................. = 128
    02\v010e0512@ \0E 1d0214\0\0\0\0\0\0\0\0\0\0\0\0\0\0R db\0\0\080
    \0\001L \0040 \0@ \010\0\0\001d0\0\0\002\0\00218\0\0\00e\0\004p 
    \0\0\0\0\0\004p \0\001h \0\004H \0\0\002\0\08d90\0\0\0H \0\005d8
    \0\003f \0\0I d0\0\0\0\0\0\0I d0\0\0C bc\0040 \0\0\0\0\00204ce1 
lseek(4, 128, SEEK_SET) .................................. = 128
read(4, 0x7b0f4f7c, 48) .................................. = 48
    10\0\004\0\0\0( \0033 94\0\0\0\0\0\0a0\0\0\0E X @ \010\0\003e0\0
    \0\0\0\0\0\0R d8\0\0\0\b\0\0\0\0
mmap(NULL, 209812, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB|MAP_STATICPREDICTION, 4, 40960) = 0xc0010000
mmap(NULL, 17752, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_SHLIB, 4, 253952) = 0x7b0eb000
close(4) ................................................. = 0
sysconf(_SC_CPU_VERSION) ................................. = 532
utssys(0x7b0f52a0, 0, 0) ................................. = 0
getuid() ................................................. = 6068 (6068)
getuid() ................................................. = 6068 (6068)
getgid() ................................................. = 6900 (6900)
getgid() ................................................. = 6900 (6900)
mmap(NULL, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7b0e9000
open("/opt/graphics/OpenGL/lib/libogltls.sl", O_RDONLY, 0200) ERR#2 ENOENT
open("/usr/lib/libc.2", O_RDONLY, 0200) .................. = 4
fstat(4, 0x7b0f5b48) ..................................... = 0
read(4, 0x7b0f5bc0, 128) ................................. = 128
    0210010e0512@ \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\080
    \0\0\0b4\017f0\0@ \010\0\0\0018 \0\0\003\0\001a4\0\0\015\0\005( 
    \0\0\0\0\0\005( \0\001| \0\004ec\0\0\003\003e7T \0\003ac\0\006a8
    \0\013ad\00190, \0\0\0\0\00190, \002W ( \017f0\0\0\0\0\0G 03f2f6
lseek(4, 128, SEEK_SET) .................................. = 128
read(4, 0x7b0f5c40, 48) .................................. = 48
    10\0\004\0\0\0( \012e3< \0\010\0\004p \0\0\090\0@ \010\0\017` \0
    \0\0d0x \0\0\0\0\0\0\0\0\0\0\0\0
read(4, 0x7b0f5c78, 12) .................................. = 12
    80\0\0\v\0\0\004\0\0\0\0
mmap(NULL, 1241088, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 4, 290816) = 0xc0100000
mmap(NULL, 57344, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_SHLIB, -1, 0) = 0x7b0db000
mmap(0x7b0d2000, 36864, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_SHLIB, 4, 1531904) = 0x7b0d2000
mmap(NULL, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7b0ce000
close(4) ................................................. = 0
open("/usr/lib/libdld.2", O_RDONLY, 0200) ................ = 4
fstat(4, 0x7b0f5d48) ..................................... = 0
read(4, 0x7b0f5dc0, 128) ................................. = 128
    02\v010e0512@ \0E 1d0217\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\080
    \0\0014 \0\0` \0@ \010\0\0\001b8\0\0\002\0\002\0\0\0\0\f\0\004\b
    \0\0\0\0\0\004\b\0\0014 \0\003e0\0\0\002\0\011dc\0\0\004\0\005@ 
    \0\0\0Y \0\0\f4 \0\0\0\0\0\0\f4 \0\005a4\0\0` \0\0\0\0\00204B a8
lseek(4, 128, SEEK_SET) .................................. = 128
read(4, 0x7b0f5e40, 48) .................................. = 48
    10\0\004\0\0\0( \0\0) \ \0\010\0\0\0  \0\0\001e0@ \010\0\0\0P \0
    \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
read(4, 0x7b0f5e78, 12) .................................. = 12
    80\0\0\v\0\0\004\0\0\0\0
mmap(NULL, 12288, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 4, 8192) = 0xc0003000
mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_SHLIB, 4, 20480) = 0x7b0cd000
close(4) ................................................. = 0
mmap(NULL, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7b0c9000
mmap(NULL, 88, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7b0c8000
sigsetreturn(0x7b0cfd56, 0x6211988, 1392) ................ = 0
sysconf(_SC_CPU_VERSION) ................................. = 532
brk(0x40001558) .......................................... = 0
brk(0x4000354c) .......................................... = 0
brk(0x40004000) .......................................... = 0
open("/usr/lib/nls/loc/locales.2/C", O_RDONLY, 0200) ..... = 4
fstat(4, 0x7b0f5948) ..................................... = 0
read(4, 0x7b0f59c0, 128) ................................. = 128
    0210010e0512@ \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\080
    \0\0\0X \0\0p \0@ \010\0\0\0\0d8\0\0\002\0\001  \0\0\006\0\0028 
    \0\0\0\0\0\0028 \0\0\090\0\00210\0\0\002\0\00e@ \0\0\001\0\002c8
    \0\0\0Z \0\0\td0\0\0\0\0\0\0\td0\0\004p \0\0p \0\0\0\0\0G 02Z \v
lseek(4, 128, SEEK_SET) .................................. = 128
read(4, 0x7b0f5a40, 48) .................................. = 48
    10\0\004\0\0\0( \0\0! e0\0\010\0\0\010\0\0\0% cc@ \010\0\0\0@ \0
    \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
read(4, 0x7b0f5a78, 12) .................................. = 12
    80\0\001\0\0\0  9 2 4 5 
mmap(NULL, 12288, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 4, 4096) = 0xc0006000
mmap(NULL, 12288, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_SHLIB, 4, 16384) = 0x7b0c5000
close(4) ................................................. = 0
stat("/usr/lib/nls/loc/locales.2/C", 0x7b0f4fb8) ......... = 0
getuid() ................................................. = 6068 (6068)
getuid() ................................................. = 6068 (6068)
getgid() ................................................. = 6900 (6900)
getgid() ................................................. = 6900 (6900)
open("date", O_RDONLY, 0) ................................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/C/date", O_RDONLY, 03) ................ ERR#2 ENOENT
open("/usr/lib/nls/msg/C/date.cat", O_RDONLY, 0177777) ... = 4
fstat(4, 0x7b0f4338) ..................................... = 0
fcntl(4, F_SETFD, 1) ..................................... = 0
time(0x40001538) ......................................... = 1349379009
brk(0x40006000) .......................................... = 0
stat("/usr/lib/tztab", 0x7b0f35d8) ....................... = 0
open("/usr/lib/tztab", O_RDONLY, 066060) ................. = 5
mmap(NULL, 15912, PROT_READ, MAP_PRIVATE, 5, 0) .......... = 0x7b0c1000
close(5) ................................................. = 0
write(1, 0x7b0ddb80, 20) ................................. = 20
    T h u   O c t     4   1 5 : 3 0 : 0 9   
write(1, 0x7b0d6f90, 3) .................................. = 3
    E D T 
write(1, 0x7b0ddb93, 6) .................................. = 6
      2 0 1 2 \n
exit(0) .................................................. WIFEXITED(0)
$


Last edited by DGPickett; 02-22-2013 at 05:44 PM..

Previous Thread | Next Thread
Test Your Knowledge in Computers #458
Difficulty: Medium
NTP uses a flat, peer-to-peer system of time sources.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Korn Shell script in stopped state while running in background

Hi, I want to run a shell script in background . but its going to stopped state $ ksh cat_Duplicate_Records_Removal.ksh & 8975 $ + Stopped (tty output) ksh cat_Duplicate_Records_Removal.ksh & why is this happening? Also could anyone please tell me what is a stopped... (12 Replies)
Discussion started by: TomG
12 Replies

2. Shell Programming and Scripting

Perl script stopped working

Hi, I have the following segment of a script which is supposed to prompt a user for password and then capture the password entered by the user. The function is called in by another script and used to work without issue, the problem is that recently the script is not waiting for the user to... (3 Replies)
Discussion started by: belalr
3 Replies

3. Shell Programming and Scripting

How can i make the current shell return from the middle of a script reading?

I am using the popular bash shell. Under the current interactive shell, i run the script like: ". ./myscript.txt" . After the current shell has finish the script, the shell will continue to work as I did previously. Actually I want the shell can return from the middle of the scripts it is... (1 Reply)
Discussion started by: Bill Zhao
1 Replies

4. Shell Programming and Scripting

Scripts stopped in the shell

Hi, I've been wondering about this for a while and I just don't know where to start looking. Some of my scripts always get stopped when I start them with $ script.plx &in the shell (bash, on Debian lenny, logged in via ssh from a Mac OS machine using Terminal.app). After a few seconds I keep... (4 Replies)
Discussion started by: mregine
4 Replies

5. UNIX for Advanced & Expert Users

stopped(sigttou) error while executing a script in background

Hi All, I have an issue where in when i execute a script in the background using '&', it exits with stopped(SIGTTOU) signal. There are two servers, where the Compute server is HP-Unix and Data server is Linux. I tried using the "stty - tostop" command to disable the SIGTTOU for background... (1 Reply)
Discussion started by: vmenon
1 Replies

6. Hardware

Middle Mouse Button stopped working

I have no idea what happened, but my middle mouse button stopped working since yesterday. I checked the settings for the mouse, everything seems fine. Reconnected mouse , restarted PC, nothing works. What kind of issue this could be, anyone experienced something like this before? If you have... (4 Replies)
Discussion started by: zdorian
4 Replies

7. Programming

autostart script for stopped services

I need script that to start the stopped service when its stopped. This script always controls status of service. For example nagios service stopped script have to start nagios service. And It can send an email for notification when stopped. (6 Replies)
Discussion started by: getrue
6 Replies

8. Shell Programming and Scripting

Asking username and password in the middle of the Shell/perl script

Can any body help me to find out the logic I have a script chkcomponent.pl Which give some output Like component1 userid: u1 component2 userid: u2 component3 userid: u1 . . #The no of components are different in different times run Now I want this chkcomponent.pl script... (1 Reply)
Discussion started by: pareshpatra
1 Replies

9. Shell Programming and Scripting

input of two numbers in the middle of the script

Hi, My script ask for the input of two numbers in the middle of it. I would like to know how to indicate this two numbers when I submit the script. thanks for any help, jalves (4 Replies)
Discussion started by: jalves
4 Replies

10. Shell Programming and Scripting

why my script stopped- any reason(urgent please)

Hi Friends, iam running some scripts, which are all off suddenly stopping. Can any one tell me the reason why it happend. Is there any reason to stop the scripts. Thanks Krishna. (1 Reply)
Discussion started by: krishna9
1 Replies

Featured Tech Videos