truss: script runs without, but 'sysntax err' with it ?!


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users truss: script runs without, but 'sysntax err' with it ?!
# 1  
Old 05-26-2009
truss: script runs without, but 'sysntax err' with it ?!

When I run a script with truss it is exiting with error.
Without truss the script runs fine!

How to understand it?

I have used the truss to resolve a 'magic' disappearing, but it brings own questions.

The main problem is in a backgroun script, which on one server just disapeares, while it works perfectly on other servers with the same 'bash' version and the same shell options.

By sysadmin advise I have run it with 'truss', and it shows some sysntax error, which is not appeared if it ran without trust.

How that could be?!

Script (it is a piece just to debug it):
Code:
  #!/usr/bin/bash
echo " bash loaded "
  shopt -s expand_aliases
echo " aliases expanded "
  alias ec=/usr/bin/echo
ec " ec - is aliased "
  typeset gr=/dev/null;
ec " typeset called - first time "
  typeset i_TST=$(ec $1|grep -i "^test" &>$gr && ec 1 || ec 0)
ec " typeset set the i_TST=$i_TST "

  rm -f stop_background_relink &>$gr
ec " removed the stop_background_relink "


for ((n=0; n<10; n++)); do
  sleep 2;
  ec " next loop -- n=$n";
done

exit;

.....
.....
.. I have just figured out, that the empty line and 2 spaces are the reason for 'truss' to not load the 'bash'; so, after that it is reasonable to be not able find the 'shopt', 'alias' and 'typeset'

BUT IT IS NOT A PROBLEM WITHOUT 'truss'!!

The command I have used to run (although only 'truss' makes difference):
Code:
> dbg_bckgr.sh </dev/null 2>&1 | tee dbg_bckgr.res &

and
Code:
> truss -d dbg_bckgr.sh </dev/null 2>&1 | tee dbg_bckgr.res &

Is it the same on different servers or it is only on our ?!?
Could someone explain that, why that is happening ?!?!

Here is the log of run without the 'truss' and with it (sorry for long list, but how else?):
Code:
--39516:/export/home/dca0701/develop/src/ReLINK> dbg_bckgr.sh </dev/null 2>&1 | tee dbg_bckgr.res &
[1] 27397
 bash loaded
 aliases expanded
 ec - is aliased
 typeset called - first time
--39517:/export/home/dca0701/develop/src/ReLINK>  typeset set the i_TST=0
 removed the stop_background_relink
 next loop -- n=0
 next loop -- n=1
 next loop -- n=2
 next loop -- n=3
 next loop -- n=4
 next loop -- n=5
 next loop -- n=6
 next loop -- n=7
 next loop -- n=8
 next loop -- n=9

[1]+  Done                    dbg_bckgr.sh </dev/null 2>&1 | tee dbg_bckgr.res
--39517:/export/home/dca0701/develop/src/ReLINK>
--39517:/export/home/dca0701/develop/src/ReLINK> truss -d dbg_bckgr.sh </dev/null 2>&1 | tee dbg_bckgr.res &
[1] 27513
Base time stamp:  1243374865.9670  [ Tue May 26 16:54:25 CDT 2009 ]
 0.0000 execve("/usr/bin/sh", 0xFFBFDEF4, 0xFFBFDF00)  argc = 2
 0.0053 resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
 0.0057 resolvepath("/usr/bin/sh", "/usr/bin/sh", 1023) = 11
 0.0059 stat("/usr/bin/sh", 0xFFBFDCB8)                 = 0
 0.0064 open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
 0.0069 stat("/usr/lib/libgen.so.1", 0xFFBFD7C0)        = 0
 0.0072 resolvepath("/usr/lib/libgen.so.1", "/usr/lib/libgen.so.1", 1023) = 20
 0.0074 open("/usr/lib/libgen.so.1", O_RDONLY)          = 3
 0.0076 mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFEBB0000
 0.0079 mmap(0x00010000, 98304, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEB90000
 0.0080 mmap(0xFEB90000, 22921, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEB90000
 0.0081 mmap(0xFEBA6000, 2351, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 24576) = 0xFEBA6000
 0.0084 munmap(0xFEB96000, 65536)                       = 0
 0.0087 memcntl(0xFEB90000, 6372, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0089 close(3)                                        = 0
 0.0090 stat("/usr/lib/libc.so.1", 0xFFBFD7C0)          = 0
 0.0093 resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
 0.0096 open("/usr/lib/libc.so.1", O_RDONLY)            = 3
 0.0098 mmap(0xFEBB0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEBB0000
 0.0100 mmap(0x00010000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEA80000
 0.0102 mmap(0xFEA80000, 703464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEA80000
 0.0103 mmap(0xFEB3C000, 24496, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFEB3C000
 0.0105 mmap(0xFEB42000, 6720, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEB42000
 0.0106 munmap(0xFEB2C000, 65536)                       = 0
 0.0108 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEB80000
--39518:/export/home/dca0701/develop/src/ReLINK>  0.0118        memcntl(0xFEA80000, 117696, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0119 close(3)                                        = 0
 0.0123 stat("/usr/lib/libdl.so.1", 0xFFBFD7C0)         = 0
 0.0126 resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
 0.0129 open("/usr/lib/libdl.so.1", O_RDONLY)           = 3
 0.0132 mmap(0xFEBB0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEBB0000
 0.0133 mmap(0x00010000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEB70000
 0.0135 mmap(0xFEB70000, 2210, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEB70000
 0.0138 close(3)                                        = 0
 0.0141 stat("/usr/platform/SUNW,Sun-Fire/lib/libc_psr.so.1", 0xFFBFD4C0) = 0
 0.0144 resolvepath("/usr/platform/SUNW,Sun-Fire/lib/libc_psr.so.1", "/usr/platform/sun4u-us3/lib/libc_psr.so.1", 1023) = 41
 0.0147 open("/usr/platform/SUNW,Sun-Fire/lib/libc_psr.so.1", O_RDONLY) = 3
 0.0149 mmap(0xFEBB0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEBB0000
 0.0150 munmap(0xFEBB2000, 24576)                       = 0
 0.0152 close(3)                                        = 0
 0.0161 getustack(0xFFBFDAFC)
 0.0162 getrlimit(RLIMIT_STACK, 0xFFBFDAF4)             = 0
 0.0163 getcontext(0xFFBFD930)
 0.0165 setustack(0xFEB439B4)
 0.0166 getpid()                                        = 27519 [27512]
 0.0167 getpgid(27519)                                  = 27512
 0.0168 getsid(27519)                                   = 19872
 0.0170 brk(0x0003A120)                                 = 0
 0.0171 sysconfig(_CONFIG_SIGRT_MIN)                    = 39
 0.0172 sysconfig(_CONFIG_SIGRT_MAX)                    = 46
 0.0173 sigaltstack(0xFFBFDE14, 0x00000000)             = 0
 0.0174 sigaction(SIGHUP, 0x00000000, 0xFFBFDD90)       = 0
 0.0175 sigaction(SIGHUP, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0176 sigaction(SIGINT, 0x00000000, 0xFFBFDD90)       = 0
 0.0177 sigaction(SIGINT, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0178 sigaction(SIGQUIT, 0x00000000, 0xFFBFDD90)      = 0
 0.0179 sigaction(SIGQUIT, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0180 sigaction(SIGILL, 0x00000000, 0xFFBFDD90)       = 0
 0.0180 sigaction(SIGILL, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0181 sigaction(SIGTRAP, 0x00000000, 0xFFBFDD90)      = 0
 0.0182 sigaction(SIGTRAP, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0183 sigaction(SIGABRT, 0x00000000, 0xFFBFDD90)      = 0
 0.0184 sigaction(SIGABRT, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0185 sigaction(SIGEMT, 0x00000000, 0xFFBFDD90)       = 0
 0.0186 sigaction(SIGEMT, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0187 sigaction(SIGFPE, 0x00000000, 0xFFBFDD90)       = 0
 0.0187 sigaction(SIGFPE, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0188 sigaction(SIGBUS, 0x00000000, 0xFFBFDD90)       = 0
 0.0189 sigaction(SIGBUS, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0190 sigaction(SIGSEGV, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0191 sigaction(SIGSYS, 0x00000000, 0xFFBFDD90)       = 0
 0.0192 sigaction(SIGSYS, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0193 sigaction(SIGPIPE, 0x00000000, 0xFFBFDD90)      = 0
 0.0194 sigaction(SIGPIPE, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0194 sigaction(SIGALRM, 0x00000000, 0xFFBFDD90)      = 0
 0.0195 sigaction(SIGALRM, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0196 sigaction(SIGTERM, 0x00000000, 0xFFBFDD90)      = 0
 0.0197 sigaction(SIGTERM, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0198 sigaction(SIGUSR1, 0x00000000, 0xFFBFDD90)      = 0
 0.0199 sigaction(SIGUSR1, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0200 sigaction(SIGUSR2, 0x00000000, 0xFFBFDD90)      = 0
 0.0200 sigaction(SIGUSR2, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0201 sigaction(SIGPWR, 0x00000000, 0xFFBFDD90)       = 0
 0.0202 sigaction(SIGPWR, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0203 sigaction(SIGURG, 0x00000000, 0xFFBFDD90)       = 0
 0.0204 sigaction(SIGURG, 0xFFBFDCF0, 0xFFBFDD70)       = 0
 0.0205 sigaction(SIGPOLL, 0x00000000, 0xFFBFDD90)      = 0
 0.0206 sigaction(SIGPOLL, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0207 sigaction(SIGVTALRM, 0x00000000, 0xFFBFDD90)    = 0
 0.0208 sigaction(SIGVTALRM, 0xFFBFDCF0, 0xFFBFDD70)    = 0
 0.0208 sigaction(SIGPROF, 0x00000000, 0xFFBFDD90)      = 0
 0.0209 sigaction(SIGPROF, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0210 sigaction(SIGXCPU, 0x00000000, 0xFFBFDD90)      = 0
 0.0211 sigaction(SIGXCPU, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0212 sigaction(SIGXFSZ, 0x00000000, 0xFFBFDD90)      = 0
 0.0213 sigaction(SIGXFSZ, 0xFFBFDCF0, 0xFFBFDD70)      = 0
 0.0215 sigaction(SIGRTMIN, 0xFFBFDCF0, 0xFFBFDD70)     = 0
 0.0216 sigaction(SIGRTMIN+1, 0xFFBFDCF0, 0xFFBFDD70)   = 0
 0.0217 sigaction(SIGRTMIN+2, 0xFFBFDCF0, 0xFFBFDD70)   = 0
 0.0218 sigaction(SIGRTMIN+3, 0xFFBFDCF0, 0xFFBFDD70)   = 0
 0.0219 sigaction(SIGRTMAX-3, 0xFFBFDCF0, 0xFFBFDD70)   = 0
 0.0220 sigaction(SIGRTMAX-2, 0xFFBFDCF0, 0xFFBFDD70)   = 0
 0.0220 sigaction(SIGRTMAX-1, 0xFFBFDCF0, 0xFFBFDD70)   = 0
 0.0221 sigaction(SIGRTMAX, 0xFFBFDCF0, 0xFFBFDD70)     = 0
 0.0225 brk(0x0003A128)                                 = 0
 0.0229 brk(0x0003A328)                                 = 0
 0.0231 brk(0x0003A528)                                 = 0
 0.0232 brk(0x0003A728)                                 = 0
 0.0233 brk(0x0003A928)                                 = 0
 0.0234 brk(0x0003AB28)                                 = 0
 0.0235 brk(0x0003AD28)                                 = 0
 0.0236 brk(0x0003AF28)                                 = 0
 0.0237 brk(0x0003B128)                                 = 0
 0.0238 brk(0x0003B328)                                 = 0
 0.0240 stat("/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2", 0xFFBFD040) = 0
 0.0243 resolvepath("/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2", "/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2", 1023) = 52
 0.0246 open("/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2", O_RDONLY) = 3
 0.0248 mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFEB60000
 0.0249 mmap(0x00010000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEA60000
 0.0250 mmap(0xFEA60000, 14806, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEA60000
 0.0252 mmap(0xFEA72000, 8798, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 8192) = 0xFEA72000
 0.0252 munmap(0xFEA64000, 57344)                       = 0
 0.0255 memcntl(0xFEA60000, 6816, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
 0.0256 close(3)                                        = 0
 0.0263 munmap(0xFEB60000, 32768)                       = 0
 0.0265 brk(0x0003B528)                                 = 0
 0.0266 brk(0x0003B728)                                 = 0
 0.0267 brk(0x0003B928)                                 = 0
 0.0268 brk(0x0003BB28)                                 = 0
 0.0269 brk(0x0003BC88)                                 = 0
 0.0270 brk(0x0003BE88)                                 = 0
 0.0271 brk(0x0003C088)                                 = 0
 0.0273 brk(0x0003C288)                                 = 0
 0.0274 brk(0x0003C488)                                 = 0
 0.0275 getuid()                                        = 4077 [4077]
 0.0276 getuid()                                        = 4077 [4077]
 0.0277 getgid()                                        = 450 [450]
 0.0278 getgid()                                        = 450 [450]
 0.0280 open64("dbg_bckgr.sh", O_RDONLY)                = 3
 0.0282 close(19)                                       Err#9 EBADF
 0.0283 fcntl(3, F_DUPFD, 0x00000013)                   = 19
 0.0284 close(3)                                        = 0
 0.0285 fcntl(19, F_SETFD, 0x00000001)                  = 0
 0.0286 ioctl(2, TCGETA, 0xFFBFDD3C)                    Err#22 EINVAL
 0.0287 read(19, "\n     # ! / u s r / b i".., 128)     = 128
 bash loaded
 0.0290 write(1, "   b a s h   l o a d e d".., 14)      = 14
 0.0292 brk(0x0003C788)                                 = 0
 0.0294 getuid()                                        = 4077 [4077]
 0.0295 stat64("shopt", 0xFFBFDAB8)                     Err#2 ENOENT
 0.0297 stat64("/usr/openwin/bin/shopt", 0xFFBFDAB8)    Err#2 ENOENT
 0.0299 stat64("/bin/shopt", 0xFFBFDAB8)                Err#2 ENOENT
 0.0302 stat64("/usr/sbin/shopt", 0xFFBFDAB8)           Err#2 ENOENT
 0.0303 stat64("/usr/bin/shopt", 0xFFBFDAB8)            Err#2 ENOENT
 0.0305 stat64("/etc/shopt", 0xFFBFDAB8)                Err#2 ENOENT
 0.0306 stat64("/usr/etc/shopt", 0xFFBFDAB8)            Err#2 ENOENT
 0.0309 stat64("/opt/utils/job/shopt", 0xFFBFDAB8)      Err#2 ENOENT
 0.0311 stat64("/opt/utils/5bin/shopt", 0xFFBFDAB8)     Err#2 ENOENT
 0.0312 stat64("/opt/utils/dsut/bin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0316 stat64("/usr/dt/bin/shopt", 0xFFBFDAB8)         Err#2 ENOENT
 0.0319 stat64("/opt/autosys/bin/shopt", 0xFFBFDAB8)    Err#2 ENOENT
 0.0320 stat64("/usr/lib/lp/postscript/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0322 stat64("/usr/local/bison/bin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0324 stat64("/usr/local/flex/bin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0326 stat64("/usr/local/emacs/bin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0328 stat64("/opt/ora/bin/shopt", 0xFFBFDAB8)        Err#2 ENOENT
 0.0330 stat64("../ubin/shopt", 0xFFBFDAB8)             Err#2 ENOENT
 0.0332 stat64("../job/shopt", 0xFFBFDAB8)              Err#2 ENOENT
 0.0334 stat64("/export/customer/dstn/test/override/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0336 stat64("/export/customer/dstn/test/ubin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0338 stat64("/export/customer/dstn/test/job/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0340 stat64("/export/customer/dstn/mod/override/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0342 stat64("/export/customer/dstn/mod/ubin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0344 stat64("/export/customer/dstn/mod/job/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0347 stat64("/export/customer/dstn/acc/override/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0349 stat64("/export/customer/dstn/acc/ubin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0350 stat64("/export/customer/dstn/acc/job/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0352 stat64("/export/customer/dstn/prod/override/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0355 stat64("/export/customer/dstn/prod/ubin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0356 stat64("/export/customer/dstn/prod/job/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0358 stat64("/opt/utils/htmldoc/ubin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0360 stat64("/opt/sybase/shopt", 0xFFBFDAB8)         Err#2 ENOENT
 0.0362 stat64("/opt/sybase/ubin/shopt", 0xFFBFDAB8)    Err#2 ENOENT
 0.0364 stat64("/opt/sybase/odbc/shopt", 0xFFBFDAB8)    Err#2 ENOENT
 0.0366 stat64("/opt/pbsw/pbssmc/shopt", 0xFFBFDAB8)    Err#2 ENOENT
 0.0368 stat64("/opt/pbsw/pbsssw/bin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0370 stat64("/opt/pbsw/fnws/bin/shopt", 0xFFBFDAB8)  Err#2 ENOENT
 0.0372 stat64("/opt/SUNWspro/WS6U2/bin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0374 stat64("/opt/SUNWspro/bin/shopt", 0xFFBFDAB8)   Err#2 ENOENT
 0.0376 stat64("/opt/mfcobol/cobol/bin/shopt", 0xFFBFDAB8) Err#2 ENOENT
 0.0378 stat64("/usr/ccs/bin/shopt", 0xFFBFDAB8)        Err#2 ENOENT
 0.0379 stat64("/usr/ucb/shopt", 0xFFBFDAB8)            Err#2 ENOENT
 0.0381 stat64("./shopt", 0xFFBFDAB8)                   Err#2 ENOENT
 0.0383 brk(0x0003CB88)                                 = 0
 0.0384 stat64("shopt", 0xFFBFDBC8)                     Err#2 ENOENT
 0.0386 stat64("/usr/openwin/bin/shopt", 0xFFBFDBC8)    Err#2 ENOENT
 0.0387 stat64("/bin/shopt", 0xFFBFDBC8)                Err#2 ENOENT
 0.0389 stat64("/usr/sbin/shopt", 0xFFBFDBC8)           Err#2 ENOENT
 0.0390 stat64("/usr/bin/shopt", 0xFFBFDBC8)            Err#2 ENOENT
 0.0392 stat64("/etc/shopt", 0xFFBFDBC8)                Err#2 ENOENT
 0.0393 stat64("/usr/etc/shopt", 0xFFBFDBC8)            Err#2 ENOENT
 0.0395 stat64("/opt/utils/job/shopt", 0xFFBFDBC8)      Err#2 ENOENT
 0.0397 stat64("/opt/utils/5bin/shopt", 0xFFBFDBC8)     Err#2 ENOENT
 0.0398 stat64("/opt/utils/dsut/bin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0400 stat64("/usr/dt/bin/shopt", 0xFFBFDBC8)         Err#2 ENOENT
 0.0402 stat64("/opt/autosys/bin/shopt", 0xFFBFDBC8)    Err#2 ENOENT
 0.0403 stat64("/usr/lib/lp/postscript/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0405 stat64("/usr/local/bison/bin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0407 stat64("/usr/local/flex/bin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0408 stat64("/usr/local/emacs/bin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0410 stat64("/opt/ora/bin/shopt", 0xFFBFDBC8)        Err#2 ENOENT
 0.0411 stat64("../ubin/shopt", 0xFFBFDBC8)             Err#2 ENOENT
 0.0414 stat64("../job/shopt", 0xFFBFDBC8)              Err#2 ENOENT
 0.0418 stat64("/export/customer/dstn/test/override/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0420 stat64("/export/customer/dstn/test/ubin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0422 stat64("/export/customer/dstn/test/job/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0425 stat64("/export/customer/dstn/mod/override/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0428 stat64("/export/customer/dstn/mod/ubin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0430 stat64("/export/customer/dstn/mod/job/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0432 stat64("/export/customer/dstn/acc/override/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0434 stat64("/export/customer/dstn/acc/ubin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0435 stat64("/export/customer/dstn/acc/job/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0437 stat64("/export/customer/dstn/prod/override/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0439 stat64("/export/customer/dstn/prod/ubin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0441 stat64("/export/customer/dstn/prod/job/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0444 stat64("/opt/utils/htmldoc/ubin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0447 stat64("/opt/sybase/shopt", 0xFFBFDBC8)         Err#2 ENOENT
 0.0449 stat64("/opt/sybase/ubin/shopt", 0xFFBFDBC8)    Err#2 ENOENT
 0.0451 stat64("/opt/sybase/odbc/shopt", 0xFFBFDBC8)    Err#2 ENOENT
 0.0453 stat64("/opt/pbsw/pbssmc/shopt", 0xFFBFDBC8)    Err#2 ENOENT
 0.0455 stat64("/opt/pbsw/pbsssw/bin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0457 stat64("/opt/pbsw/fnws/bin/shopt", 0xFFBFDBC8)  Err#2 ENOENT
 0.0459 stat64("/opt/SUNWspro/WS6U2/bin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0461 stat64("/opt/SUNWspro/bin/shopt", 0xFFBFDBC8)   Err#2 ENOENT
 0.0462 stat64("/opt/mfcobol/cobol/bin/shopt", 0xFFBFDBC8) Err#2 ENOENT
 0.0464 stat64("/usr/ccs/bin/shopt", 0xFFBFDBC8)        Err#2 ENOENT
 0.0466 stat64("/usr/ucb/shopt", 0xFFBFDBC8)            Err#2 ENOENT
 0.0467 stat64("./shopt", 0xFFBFDBC8)                   Err#2 ENOENT
dbg_bckgr.sh 0.0474     write(2, " d b g _ b c k g r . s h", 12)        = 12
:  0.0475       write(2, " :  ", 2)                             = 2
shopt 0.0478    write(2, " s h o p t", 5)                       = 5
:  0.0480       write(2, " :  ", 2)                             = 2
not found 0.0482        write(2, " n o t   f o u n d", 9)               = 9

 0.0484 write(2, "\n", 1)                               = 1
 0.0485 brk(0x0003C988)                                 = 0
 aliases expanded
 0.0487 write(1, "   a l i a s e s   e x p".., 19)      = 19
 0.0490 brk(0x0003C788)                                 = 0
 0.0492 stat64("alias", 0xFFBFDAB8)                     Err#2 ENOENT
 0.0497 stat64("/usr/openwin/bin/alias", 0xFFBFDAB8)    Err#2 ENOENT
 0.0500 stat64("/bin/alias", 0xFFBFDAB8)                = 0
 0.0503 access("/bin/alias", 9)                         = 0
 0.0514 fork()                                          = 27521
 0.0894 waitid(P_PID, 27521, 0xFFBFDC58, WEXITED|WTRAPPED|WNOWAIT) = 0
 0.0897 ioctl(0, TIOCGPGRP, 0xFFBFDC14)                 Err#6 ENXIO
 0.0898 getpgid(27521)                                  = 27512
 0.0899 ioctl(0, TIOCGPGRP, 0xFFBFDC14)                 Err#6 ENXIO
 0.0900 waitid(P_PID, 27521, 0xFFBFDC58, WEXITED|WTRAPPED) = 0
 0.0901 brk(0x0003C588)                                 = 0
 0.0903 read(19, " s   a l i a s e d   "\n".., 128)     = 128
 0.0905 brk(0x0003C988)                                 = 0
 0.0907 stat64("ec", 0xFFBFDAB8)                        Err#2 ENOENT
 0.0908 stat64("/usr/openwin/bin/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.0910 stat64("/bin/ec", 0xFFBFDAB8)                   Err#2 ENOENT
 0.0913 stat64("/usr/sbin/ec", 0xFFBFDAB8)              Err#2 ENOENT
 0.0917 stat64("/usr/bin/ec", 0xFFBFDAB8)               Err#2 ENOENT
 0.0919 stat64("/etc/ec", 0xFFBFDAB8)                   Err#2 ENOENT
 0.0922 stat64("/usr/etc/ec", 0xFFBFDAB8)               Err#2 ENOENT
 0.0925 stat64("/opt/utils/job/ec", 0xFFBFDAB8)         Err#2 ENOENT
 0.0927 stat64("/opt/utils/5bin/ec", 0xFFBFDAB8)        Err#2 ENOENT
 0.0929 stat64("/opt/utils/dsut/bin/ec", 0xFFBFDAB8)    Err#2 ENOENT
 0.0931 stat64("/usr/dt/bin/ec", 0xFFBFDAB8)            Err#2 ENOENT
 0.0932 stat64("/opt/autosys/bin/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.0934 stat64("/usr/lib/lp/postscript/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0936 stat64("/usr/local/bison/bin/ec", 0xFFBFDAB8)   Err#2 ENOENT
 0.0938 stat64("/usr/local/flex/bin/ec", 0xFFBFDAB8)    Err#2 ENOENT
 0.0939 stat64("/usr/local/emacs/bin/ec", 0xFFBFDAB8)   Err#2 ENOENT
 0.0941 stat64("/opt/ora/bin/ec", 0xFFBFDAB8)           Err#2 ENOENT
 0.0943 stat64("../ubin/ec", 0xFFBFDAB8)                Err#2 ENOENT
 0.0945 stat64("../job/ec", 0xFFBFDAB8)                 Err#2 ENOENT
 0.0947 stat64("/export/customer/dstn/test/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0948 stat64("/export/customer/dstn/test/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0950 stat64("/export/customer/dstn/test/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0952 stat64("/export/customer/dstn/mod/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0954 stat64("/export/customer/dstn/mod/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0956 stat64("/export/customer/dstn/mod/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0959 stat64("/export/customer/dstn/acc/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0961 stat64("/export/customer/dstn/acc/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0963 stat64("/export/customer/dstn/acc/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0965 stat64("/export/customer/dstn/prod/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0967 stat64("/export/customer/dstn/prod/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0968 stat64("/export/customer/dstn/prod/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0970 stat64("/opt/utils/htmldoc/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0972 stat64("/opt/sybase/ec", 0xFFBFDAB8)            Err#2 ENOENT
 0.0974 stat64("/opt/sybase/ubin/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.0976 stat64("/opt/sybase/odbc/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.0978 stat64("/opt/pbsw/pbssmc/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.0980 stat64("/opt/pbsw/pbsssw/bin/ec", 0xFFBFDAB8)   Err#2 ENOENT
 0.0982 stat64("/opt/pbsw/fnws/bin/ec", 0xFFBFDAB8)     Err#2 ENOENT
 0.0983 stat64("/opt/SUNWspro/WS6U2/bin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0985 stat64("/opt/SUNWspro/bin/ec", 0xFFBFDAB8)      Err#2 ENOENT
 0.0987 stat64("/opt/mfcobol/cobol/bin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.0988 stat64("/usr/ccs/bin/ec", 0xFFBFDAB8)           Err#2 ENOENT
 0.0990 stat64("/usr/ucb/ec", 0xFFBFDAB8)               Err#2 ENOENT
 0.0992 stat64("./ec", 0xFFBFDAB8)                      Err#2 ENOENT
 0.0995 brk(0x0003CE88)                                 = 0
 0.0996 stat64("ec", 0xFFBFDBC8)                        Err#2 ENOENT
 0.0998 stat64("/usr/openwin/bin/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.0999 stat64("/bin/ec", 0xFFBFDBC8)                   Err#2 ENOENT
 0.1001 stat64("/usr/sbin/ec", 0xFFBFDBC8)              Err#2 ENOENT
 0.1002 stat64("/usr/bin/ec", 0xFFBFDBC8)               Err#2 ENOENT
 0.1004 stat64("/etc/ec", 0xFFBFDBC8)                   Err#2 ENOENT
 0.1005 stat64("/usr/etc/ec", 0xFFBFDBC8)               Err#2 ENOENT
 0.1007 stat64("/opt/utils/job/ec", 0xFFBFDBC8)         Err#2 ENOENT
 0.1009 stat64("/opt/utils/5bin/ec", 0xFFBFDBC8)        Err#2 ENOENT
 0.1010 stat64("/opt/utils/dsut/bin/ec", 0xFFBFDBC8)    Err#2 ENOENT
 0.1012 stat64("/usr/dt/bin/ec", 0xFFBFDBC8)            Err#2 ENOENT
 0.1017 stat64("/opt/autosys/bin/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1019 stat64("/usr/lib/lp/postscript/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1021 stat64("/usr/local/bison/bin/ec", 0xFFBFDBC8)   Err#2 ENOENT
 0.1022 stat64("/usr/local/flex/bin/ec", 0xFFBFDBC8)    Err#2 ENOENT
 0.1024 stat64("/usr/local/emacs/bin/ec", 0xFFBFDBC8)   Err#2 ENOENT
 0.1026 stat64("/opt/ora/bin/ec", 0xFFBFDBC8)           Err#2 ENOENT
 0.1028 stat64("../ubin/ec", 0xFFBFDBC8)                Err#2 ENOENT
 0.1029 stat64("../job/ec", 0xFFBFDBC8)                 Err#2 ENOENT
 0.1031 stat64("/export/customer/dstn/test/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1033 stat64("/export/customer/dstn/test/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1035 stat64("/export/customer/dstn/test/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1037 stat64("/export/customer/dstn/mod/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1039 stat64("/export/customer/dstn/mod/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1040 stat64("/export/customer/dstn/mod/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1042 stat64("/export/customer/dstn/acc/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1044 stat64("/export/customer/dstn/acc/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1046 stat64("/export/customer/dstn/acc/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1047 stat64("/export/customer/dstn/prod/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1049 stat64("/export/customer/dstn/prod/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1051 stat64("/export/customer/dstn/prod/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1053 stat64("/opt/utils/htmldoc/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1054 stat64("/opt/sybase/ec", 0xFFBFDBC8)            Err#2 ENOENT
 0.1056 stat64("/opt/sybase/ubin/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1058 stat64("/opt/sybase/odbc/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1060 stat64("/opt/pbsw/pbssmc/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1062 stat64("/opt/pbsw/pbsssw/bin/ec", 0xFFBFDBC8)   Err#2 ENOENT
 0.1063 stat64("/opt/pbsw/fnws/bin/ec", 0xFFBFDBC8)     Err#2 ENOENT
 0.1066 stat64("/opt/SUNWspro/WS6U2/bin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1068 stat64("/opt/SUNWspro/bin/ec", 0xFFBFDBC8)      Err#2 ENOENT
 0.1069 stat64("/opt/mfcobol/cobol/bin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1071 stat64("/usr/ccs/bin/ec", 0xFFBFDBC8)           Err#2 ENOENT
 0.1072 stat64("/usr/ucb/ec", 0xFFBFDBC8)               Err#2 ENOENT
 0.1074 stat64("./ec", 0xFFBFDBC8)                      Err#2 ENOENT
dbg_bckgr.sh 0.1076     write(2, " d b g _ b c k g r . s h", 12)        = 12
:  0.1078       write(2, " :  ", 2)                             = 2
ec 0.1080       write(2, " e c", 2)                             = 2
:  0.1081       write(2, " :  ", 2)                             = 2
not found 0.1083        write(2, " n o t   f o u n d", 9)               = 9

 0.1084 write(2, "\n", 1)                               = 1
 0.1086 brk(0x0003CC88)                                 = 0
 0.1088 stat64("typeset", 0xFFBFDAB8)                   Err#2 ENOENT
 0.1090 stat64("/usr/openwin/bin/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1093 stat64("/bin/typeset", 0xFFBFDAB8)              Err#2 ENOENT
 0.1095 stat64("/usr/sbin/typeset", 0xFFBFDAB8)         Err#2 ENOENT
 0.1096 stat64("/usr/bin/typeset", 0xFFBFDAB8)          Err#2 ENOENT
 0.1098 stat64("/etc/typeset", 0xFFBFDAB8)              Err#2 ENOENT
 0.1099 stat64("/usr/etc/typeset", 0xFFBFDAB8)          Err#2 ENOENT
 0.1101 stat64("/opt/utils/job/typeset", 0xFFBFDAB8)    Err#2 ENOENT
 0.1104 stat64("/opt/utils/5bin/typeset", 0xFFBFDAB8)   Err#2 ENOENT
 0.1105 stat64("/opt/utils/dsut/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1107 stat64("/usr/dt/bin/typeset", 0xFFBFDAB8)       Err#2 ENOENT
 0.1109 stat64("/opt/autosys/bin/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1111 stat64("/usr/lib/lp/postscript/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1115 stat64("/usr/local/bison/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1118 stat64("/usr/local/flex/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1120 stat64("/usr/local/emacs/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1122 stat64("/opt/ora/bin/typeset", 0xFFBFDAB8)      Err#2 ENOENT
 0.1124 stat64("../ubin/typeset", 0xFFBFDAB8)           Err#2 ENOENT
 0.1125 stat64("../job/typeset", 0xFFBFDAB8)            Err#2 ENOENT
 0.1127 stat64("/export/customer/dstn/test/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1129 stat64("/export/customer/dstn/test/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1132 stat64("/export/customer/dstn/test/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1135 stat64("/export/customer/dstn/mod/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1137 stat64("/export/customer/dstn/mod/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1138 stat64("/export/customer/dstn/mod/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1140 stat64("/export/customer/dstn/acc/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1142 stat64("/export/customer/dstn/acc/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1144 stat64("/export/customer/dstn/acc/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1146 stat64("/export/customer/dstn/prod/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1148 stat64("/export/customer/dstn/prod/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1150 stat64("/export/customer/dstn/prod/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1152 stat64("/opt/utils/htmldoc/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1154 stat64("/opt/sybase/typeset", 0xFFBFDAB8)       Err#2 ENOENT
 0.1156 stat64("/opt/sybase/ubin/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1158 stat64("/opt/sybase/odbc/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1160 stat64("/opt/pbsw/pbssmc/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1162 stat64("/opt/pbsw/pbsssw/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1164 stat64("/opt/pbsw/fnws/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1165 stat64("/opt/SUNWspro/WS6U2/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1167 stat64("/opt/SUNWspro/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1169 stat64("/opt/mfcobol/cobol/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1171 stat64("/usr/ccs/bin/typeset", 0xFFBFDAB8)      Err#2 ENOENT
 0.1172 stat64("/usr/ucb/typeset", 0xFFBFDAB8)          Err#2 ENOENT
 0.1174 stat64("./typeset", 0xFFBFDAB8)                 Err#2 ENOENT
 0.1176 stat64("typeset", 0xFFBFDBC8)                   Err#2 ENOENT
 0.1177 stat64("/usr/openwin/bin/typeset", 0xFFBFDBC8)  Err#2 ENOENT
 0.1179 stat64("/bin/typeset", 0xFFBFDBC8)              Err#2 ENOENT
 0.1181 stat64("/usr/sbin/typeset", 0xFFBFDBC8)         Err#2 ENOENT
 0.1182 stat64("/usr/bin/typeset", 0xFFBFDBC8)          Err#2 ENOENT
 0.1184 stat64("/etc/typeset", 0xFFBFDBC8)              Err#2 ENOENT
 0.1185 stat64("/usr/etc/typeset", 0xFFBFDBC8)          Err#2 ENOENT
 0.1187 stat64("/opt/utils/job/typeset", 0xFFBFDBC8)    Err#2 ENOENT
 0.1188 stat64("/opt/utils/5bin/typeset", 0xFFBFDBC8)   Err#2 ENOENT
 0.1190 stat64("/opt/utils/dsut/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1192 stat64("/usr/dt/bin/typeset", 0xFFBFDBC8)       Err#2 ENOENT
 0.1194 stat64("/opt/autosys/bin/typeset", 0xFFBFDBC8)  Err#2 ENOENT
 0.1195 stat64("/usr/lib/lp/postscript/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1197 stat64("/usr/local/bison/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1198 stat64("/usr/local/flex/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1200 stat64("/usr/local/emacs/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1202 stat64("/opt/ora/bin/typeset", 0xFFBFDBC8)      Err#2 ENOENT
 0.1203 stat64("../ubin/typeset", 0xFFBFDBC8)           Err#2 ENOENT
 0.1205 stat64("../job/typeset", 0xFFBFDBC8)            Err#2 ENOENT
 0.1207 stat64("/export/customer/dstn/test/override/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1208 stat64("/export/customer/dstn/test/ubin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1210 stat64("/export/customer/dstn/test/job/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1212 stat64("/export/customer/dstn/mod/override/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1216 stat64("/export/customer/dstn/mod/ubin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1220 stat64("/export/customer/dstn/mod/job/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1223 stat64("/export/customer/dstn/acc/override/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1225 stat64("/export/customer/dstn/acc/ubin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1227 stat64("/export/customer/dstn/acc/job/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1229 stat64("/export/customer/dstn/prod/override/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1231 stat64("/export/customer/dstn/prod/ubin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1233 stat64("/export/customer/dstn/prod/job/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1235 stat64("/opt/utils/htmldoc/ubin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1237 stat64("/opt/sybase/typeset", 0xFFBFDBC8)       Err#2 ENOENT
 0.1238 stat64("/opt/sybase/ubin/typeset", 0xFFBFDBC8)  Err#2 ENOENT
 0.1240 stat64("/opt/sybase/odbc/typeset", 0xFFBFDBC8)  Err#2 ENOENT
 0.1242 stat64("/opt/pbsw/pbssmc/typeset", 0xFFBFDBC8)  Err#2 ENOENT
 0.1244 stat64("/opt/pbsw/pbsssw/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1246 stat64("/opt/pbsw/fnws/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1247 stat64("/opt/SUNWspro/WS6U2/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1249 stat64("/opt/SUNWspro/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1251 stat64("/opt/mfcobol/cobol/bin/typeset", 0xFFBFDBC8) Err#2 ENOENT
 0.1252 stat64("/usr/ccs/bin/typeset", 0xFFBFDBC8)      Err#2 ENOENT
 0.1254 stat64("/usr/ucb/typeset", 0xFFBFDBC8)          Err#2 ENOENT
 0.1255 stat64("./typeset", 0xFFBFDBC8)                 Err#2 ENOENT
dbg_bckgr.sh 0.1258     write(2, " d b g _ b c k g r . s h", 12)        = 12
:  0.1259       write(2, " :  ", 2)                             = 2
typeset 0.1261  write(2, " t y p e s e t", 7)                   = 7
:  0.1262       write(2, " :  ", 2)                             = 2
not found 0.1264        write(2, " n o t   f o u n d", 9)               = 9

 0.1265 write(2, "\n", 1)                               = 1
 0.1267 brk(0x0003CA88)                                 = 0
 0.1268 stat64("ec", 0xFFBFDAB8)                        Err#2 ENOENT
 0.1270 stat64("/usr/openwin/bin/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.1272 stat64("/bin/ec", 0xFFBFDAB8)                   Err#2 ENOENT
 0.1273 stat64("/usr/sbin/ec", 0xFFBFDAB8)              Err#2 ENOENT
 0.1275 stat64("/usr/bin/ec", 0xFFBFDAB8)               Err#2 ENOENT
 0.1276 stat64("/etc/ec", 0xFFBFDAB8)                   Err#2 ENOENT
 0.1278 stat64("/usr/etc/ec", 0xFFBFDAB8)               Err#2 ENOENT
 0.1279 stat64("/opt/utils/job/ec", 0xFFBFDAB8)         Err#2 ENOENT
 0.1281 stat64("/opt/utils/5bin/ec", 0xFFBFDAB8)        Err#2 ENOENT
 0.1283 stat64("/opt/utils/dsut/bin/ec", 0xFFBFDAB8)    Err#2 ENOENT
 0.1284 stat64("/usr/dt/bin/ec", 0xFFBFDAB8)            Err#2 ENOENT
 0.1286 stat64("/opt/autosys/bin/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.1288 stat64("/usr/lib/lp/postscript/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1289 stat64("/usr/local/bison/bin/ec", 0xFFBFDAB8)   Err#2 ENOENT
 0.1291 stat64("/usr/local/flex/bin/ec", 0xFFBFDAB8)    Err#2 ENOENT
 0.1293 stat64("/usr/local/emacs/bin/ec", 0xFFBFDAB8)   Err#2 ENOENT
 0.1295 stat64("/opt/ora/bin/ec", 0xFFBFDAB8)           Err#2 ENOENT
 0.1296 stat64("../ubin/ec", 0xFFBFDAB8)                Err#2 ENOENT
 0.1298 stat64("../job/ec", 0xFFBFDAB8)                 Err#2 ENOENT
 0.1300 stat64("/export/customer/dstn/test/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1301 stat64("/export/customer/dstn/test/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1303 stat64("/export/customer/dstn/test/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1305 stat64("/export/customer/dstn/mod/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1307 stat64("/export/customer/dstn/mod/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1308 stat64("/export/customer/dstn/mod/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1310 stat64("/export/customer/dstn/acc/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1314 stat64("/export/customer/dstn/acc/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1316 stat64("/export/customer/dstn/acc/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1318 stat64("/export/customer/dstn/prod/override/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1320 stat64("/export/customer/dstn/prod/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1322 stat64("/export/customer/dstn/prod/job/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1324 stat64("/opt/utils/htmldoc/ubin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1325 stat64("/opt/sybase/ec", 0xFFBFDAB8)            Err#2 ENOENT
 0.1327 stat64("/opt/sybase/ubin/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.1329 stat64("/opt/sybase/odbc/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.1331 stat64("/opt/pbsw/pbssmc/ec", 0xFFBFDAB8)       Err#2 ENOENT
 0.1333 stat64("/opt/pbsw/pbsssw/bin/ec", 0xFFBFDAB8)   Err#2 ENOENT
 0.1335 stat64("/opt/pbsw/fnws/bin/ec", 0xFFBFDAB8)     Err#2 ENOENT
 0.1337 stat64("/opt/SUNWspro/WS6U2/bin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1338 stat64("/opt/SUNWspro/bin/ec", 0xFFBFDAB8)      Err#2 ENOENT
 0.1340 stat64("/opt/mfcobol/cobol/bin/ec", 0xFFBFDAB8) Err#2 ENOENT
 0.1341 stat64("/usr/ccs/bin/ec", 0xFFBFDAB8)           Err#2 ENOENT
 0.1343 stat64("/usr/ucb/ec", 0xFFBFDAB8)               Err#2 ENOENT
 0.1345 stat64("./ec", 0xFFBFDAB8)                      Err#2 ENOENT
 0.1347 stat64("ec", 0xFFBFDBC8)                        Err#2 ENOENT
 0.1348 stat64("/usr/openwin/bin/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1350 stat64("/bin/ec", 0xFFBFDBC8)                   Err#2 ENOENT
 0.1352 stat64("/usr/sbin/ec", 0xFFBFDBC8)              Err#2 ENOENT
 0.1353 stat64("/usr/bin/ec", 0xFFBFDBC8)               Err#2 ENOENT
 0.1355 stat64("/etc/ec", 0xFFBFDBC8)                   Err#2 ENOENT
 0.1356 stat64("/usr/etc/ec", 0xFFBFDBC8)               Err#2 ENOENT
 0.1358 stat64("/opt/utils/job/ec", 0xFFBFDBC8)         Err#2 ENOENT
 0.1360 stat64("/opt/utils/5bin/ec", 0xFFBFDBC8)        Err#2 ENOENT
 0.1362 stat64("/opt/utils/dsut/bin/ec", 0xFFBFDBC8)    Err#2 ENOENT
 0.1363 stat64("/usr/dt/bin/ec", 0xFFBFDBC8)            Err#2 ENOENT
 0.1365 stat64("/opt/autosys/bin/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1367 stat64("/usr/lib/lp/postscript/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1369 stat64("/usr/local/bison/bin/ec", 0xFFBFDBC8)   Err#2 ENOENT
 0.1370 stat64("/usr/local/flex/bin/ec", 0xFFBFDBC8)    Err#2 ENOENT
 0.1372 stat64("/usr/local/emacs/bin/ec", 0xFFBFDBC8)   Err#2 ENOENT
 0.1374 stat64("/opt/ora/bin/ec", 0xFFBFDBC8)           Err#2 ENOENT
 0.1376 stat64("../ubin/ec", 0xFFBFDBC8)                Err#2 ENOENT
 0.1377 stat64("../job/ec", 0xFFBFDBC8)                 Err#2 ENOENT
 0.1379 stat64("/export/customer/dstn/test/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1381 stat64("/export/customer/dstn/test/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1383 stat64("/export/customer/dstn/test/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1384 stat64("/export/customer/dstn/mod/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1387 stat64("/export/customer/dstn/mod/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1389 stat64("/export/customer/dstn/mod/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1390 stat64("/export/customer/dstn/acc/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1392 stat64("/export/customer/dstn/acc/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1394 stat64("/export/customer/dstn/acc/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1396 stat64("/export/customer/dstn/prod/override/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1397 stat64("/export/customer/dstn/prod/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1399 stat64("/export/customer/dstn/prod/job/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1401 stat64("/opt/utils/htmldoc/ubin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1402 stat64("/opt/sybase/ec", 0xFFBFDBC8)            Err#2 ENOENT
 0.1404 stat64("/opt/sybase/ubin/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1406 stat64("/opt/sybase/odbc/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1407 stat64("/opt/pbsw/pbssmc/ec", 0xFFBFDBC8)       Err#2 ENOENT
 0.1409 stat64("/opt/pbsw/pbsssw/bin/ec", 0xFFBFDBC8)   Err#2 ENOENT
 0.1411 stat64("/opt/pbsw/fnws/bin/ec", 0xFFBFDBC8)     Err#2 ENOENT
 0.1413 stat64("/opt/SUNWspro/WS6U2/bin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1416 stat64("/opt/SUNWspro/bin/ec", 0xFFBFDBC8)      Err#2 ENOENT
 0.1418 stat64("/opt/mfcobol/cobol/bin/ec", 0xFFBFDBC8) Err#2 ENOENT
 0.1420 stat64("/usr/ccs/bin/ec", 0xFFBFDBC8)           Err#2 ENOENT
 0.1422 stat64("/usr/ucb/ec", 0xFFBFDBC8)               Err#2 ENOENT
 0.1423 stat64("./ec", 0xFFBFDBC8)                      Err#2 ENOENT
dbg_bckgr.sh 0.1425     write(2, " d b g _ b c k g r . s h", 12)        = 12
:  0.1427       write(2, " :  ", 2)                             = 2
ec 0.1429       write(2, " e c", 2)                             = 2
:  0.1430       write(2, " :  ", 2)                             = 2
not found 0.1432        write(2, " n o t   f o u n d", 9)               = 9

 0.1433 write(2, "\n", 1)                               = 1
 0.1435 brk(0x0003C888)                                 = 0
 0.1436 stat64("typeset", 0xFFBFDAB8)                   Err#2 ENOENT
 0.1438 stat64("/usr/openwin/bin/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1440 stat64("/bin/typeset", 0xFFBFDAB8)              Err#2 ENOENT
 0.1441 stat64("/usr/sbin/typeset", 0xFFBFDAB8)         Err#2 ENOENT
 0.1443 stat64("/usr/bin/typeset", 0xFFBFDAB8)          Err#2 ENOENT
 0.1444 stat64("/etc/typeset", 0xFFBFDAB8)              Err#2 ENOENT
 0.1446 stat64("/usr/etc/typeset", 0xFFBFDAB8)          Err#2 ENOENT
 0.1448 stat64("/opt/utils/job/typeset", 0xFFBFDAB8)    Err#2 ENOENT
 0.1450 stat64("/opt/utils/5bin/typeset", 0xFFBFDAB8)   Err#2 ENOENT
 0.1451 stat64("/opt/utils/dsut/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1453 stat64("/usr/dt/bin/typeset", 0xFFBFDAB8)       Err#2 ENOENT
 0.1455 stat64("/opt/autosys/bin/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1456 stat64("/usr/lib/lp/postscript/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1458 stat64("/usr/local/bison/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1460 stat64("/usr/local/flex/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1461 stat64("/usr/local/emacs/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1463 stat64("/opt/ora/bin/typeset", 0xFFBFDAB8)      Err#2 ENOENT
 0.1465 stat64("../ubin/typeset", 0xFFBFDAB8)           Err#2 ENOENT
 0.1466 stat64("../job/typeset", 0xFFBFDAB8)            Err#2 ENOENT
 0.1469 stat64("/export/customer/dstn/test/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1471 stat64("/export/customer/dstn/test/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1473 stat64("/export/customer/dstn/test/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1475 stat64("/export/customer/dstn/mod/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1477 stat64("/export/customer/dstn/mod/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1478 stat64("/export/customer/dstn/mod/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1480 stat64("/export/customer/dstn/acc/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1482 stat64("/export/customer/dstn/acc/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1484 stat64("/export/customer/dstn/acc/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1486 stat64("/export/customer/dstn/prod/override/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1488 stat64("/export/customer/dstn/prod/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1489 stat64("/export/customer/dstn/prod/job/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1491 stat64("/opt/utils/htmldoc/ubin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1493 stat64("/opt/sybase/typeset", 0xFFBFDAB8)       Err#2 ENOENT
 0.1495 stat64("/opt/sybase/ubin/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1497 stat64("/opt/sybase/odbc/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1499 stat64("/opt/pbsw/pbssmc/typeset", 0xFFBFDAB8)  Err#2 ENOENT
 0.1500 stat64("/opt/pbsw/pbsssw/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1502 stat64("/opt/pbsw/fnws/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1504 stat64("/opt/SUNWspro/WS6U2/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1506 stat64("/opt/SUNWspro/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1507 stat64("/opt/mfcobol/cobol/bin/typeset", 0xFFBFDAB8) Err#2 ENOENT
 0.1509 stat64("/usr/ccs/bin/typeset", 0xFFBFDAB8)      Err#2 ENOENT
 0.1511 stat64("/usr/ucb/typeset", 0xFFBFDAB8)          Err#2 ENOENT
 0.1512 stat64("./typeset", 0xFFBFDAB8)                 Err#2 ENOENT
dbg_bckgr.sh 0.1516     write(2, " d b g _ b c k g r . s h", 12)        = 12
:  0.1518       write(2, " :  ", 2)                             = 2
syntax error 0.1520     write(2, " s y n t a x   e r r o r", 12)        = 12
 at line  0.1521        write(2, "   a t   l i n e  ", 9)               = 9
10 0.1523       write(2, " 1 0", 2)                             = 2
:  0.1524       write(2, " :  ", 2)                             = 2
` 0.1527        write(2, " `", 1)                               = 1
( 0.1528        write(2, " (", 1)                               = 1
' 0.1530        write(2, " '", 1)                               = 1
 unexpected 0.1531      write(2, "   u n e x p e c t e d", 11)          = 11

 0.1532 write(2, "\n", 1)                               = 1
 0.1535 _exit(2)

[1]+  Done                    truss -d dbg_bckgr.sh </dev/null 2>&1 | tee dbg_bckgr.res
--39518:/export/home/dca0701/develop/src/ReLINK>

# 2  
Old 05-26-2009
The script is obviously having trouble finding command when run from truss(1); typeset(1) and shopt are shell builtins so bash(1) should not need to hunt down your PATH to find them... This is typical behaviour of scripts run from cron(1m) for instance where there is no user environment for the script to run in, perhaps this is the same?

May I recommend for starters that you put a PATH= line at the start of the script directly after the shell so that you can set it to only include those directories you need to run the script? e.g.:
Code:
PATH=/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin; export PATH

As far as I can see you only need /usr/bin for echo(1) and rm(1), the former of which you have referred to fully pathed anyway and see how you get on? This will certainly shorten the truss output anyway!
# 3  
Old 05-27-2009
Thank you, TonyFullerMalv, for your opinion and useful advise. I believe adding path should speedup performance. (Am I right?)
Althoug I believe, the problem is in not loading the 'bash' at all. The first line in 'trust' dispay the 'sh' is loaded, instead.
Code:
execve("/usr/bin/sh", 0xFFBFDEF4, 0xFFBFDF00)  argc = 2

And that is not, I guess, without the 'truss'.
That is weird.
I have try to run the script, having the '#!.." from first position (just did not include the log, as it is far mach.)
As I have said, if there is no any space on beginning, no try to search all buildin commands in all paths.

But, I will try tomorrow to define the PATH and will let to know how that will reflect the 'truss' log.
Appreciate!
# 4  
Old 05-27-2009
This is the expected behavior. The misformed #! line is causing the exec to fail. This is covered in detail here: https://www.unix.com/tips-tutorials/3...r-bin-ksh.html
# 5  
Old 05-27-2009
Yes shortening the PATH will improve the performance.

To prove the bash theory switch to bash then run the truss which will then be running inside a bash shell.
Code:
$ bash
$ truss -d dbg_bckgr.sh </dev/null 2>&1 | tee dbg_bckgr.res &

and see if it then behaves.

If the line:
Code:
  #!/usr/bin/bash

is literal then the spaces in front of the "#" need to be removed and stating the obvious it would be good to check that is to confirm that /usr/bin/bash exists (or /bin/bash).
# 6  
Old 05-27-2009
Perderabo, you have done great work to describe about the sharpbang '#!' !
I have read it and have some new interested points.
But,.. I see that the different systems behaives differently on white spaces before sharpbang, but how is the same system has no problem to run script (with spaces before '#!') by itself, but does not able to realise it under the 'truss' I still not clear.

TonyFullerMalv - regarding running the script under 'bash' - I use bash as my shell all the time, and provided truss-log is under bash.
(Although it is a hint how script could fail for 'production control' where the 'sh' is used..!!)

Regarding the PATH - it is turned out, that it is not usefull, as actual script use Oracle and internal system calls; so, it would required to copy almost all environment PATH..


I appreciate responces!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Script only runs first time through crontab

Hello, I am trying to run a script through crontab and it runs the first time and then it does not run. I tried to run a simple script (as shown below) and I see the same issue. #!/bin/ksh clear echo "Good Morning, World." > /tmp/test123 Crontab Entry: 30 09 * * *... (9 Replies)
Discussion started by: hasn318
9 Replies

2. Shell Programming and Scripting

Script runs in endless loop

Hi, AM very new to shell scripting and try to run a simple do while loop statement, but it ends up running endlessly. please can anyone assist, dunno what am doing wrong, any useful suggestions will be welcomed. #!/bin/ksh ### To check a running process instance #################... (5 Replies)
Discussion started by: bayoo
5 Replies

3. UNIX for Dummies Questions & Answers

Script only runs as a particular user

Hi guys So I've got this PERL script that for one reason or another I need to run as a user other than the user that created the script. When I su - to another user the script won't run and doesn't give me any output as to why. No permission denied or anything like that. I've chmod 777'd the... (5 Replies)
Discussion started by: Jaymoney
5 Replies

4. Shell Programming and Scripting

Script to monitor for new file with ext .err and size > 0 bytes and perform a action or command

Hi All, I need to create a script to monitor a dir for new files with ext .err and also it should b a non empty files. and perform a action or command . We have a new ETL application that runs on a linux server, every times a etl fails it creates a .err file or updates the existing .err... (4 Replies)
Discussion started by: MAKHAN
4 Replies

5. Shell Programming and Scripting

Ksh script: std Out/err

Hello gurus, this is part of my script: ls -1 ${MyFile} >> ${dir_log}ListFile${Now}.tmp FILENUM=`cat ${dir_log}ListFile${Now}.tmp| wc -l | awk '{print $1}'`>> /dev/null if then writeError "ERRORE: no file in directory for type ${FileName}!" >> ${LogFileName} Close 1 fi... (7 Replies)
Discussion started by: GERMANICO
7 Replies

6. Shell Programming and Scripting

Shell script which runs sql script

Hi all, I need a shell script which runs a sql script but I couldn't find how to finish it. This is the code that I have: #! /usr/bin/ksh export SHELL=/bin/ksh export ORACLE_SID=database export ORACLE_HOME=/opt/oracle/product/9.2.0.8 sqlplus user <<EOF @/path/path/path/scriptname.sql... (3 Replies)
Discussion started by: Geller
3 Replies

7. Shell Programming and Scripting

Shell Script: want to insert values in database when update script runs

Hi , I am new to linux and also also to shell scripting. I have one shell script which unpacks .tgz file and install software on machine. When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder... (1 Reply)
Discussion started by: ring
1 Replies

8. UNIX for Advanced & Expert Users

My script runs too slow :-(...

Hello experts, I have a series issue in script that result with bad peformence and I wonder if you can assist me. For example I have two files: File-New, size 15Mb. File-Old, size 1Mb. File-New content: a b c k File-Old content: d f a b (0 Replies)
Discussion started by: roybe
0 Replies
Login or Register to Ask a Question