On 9/14/07, Ariz Jacinto <[EMAIL PROTECTED]> wrote:
>
> try running:
>
> shell> strace scriptname.sh
>
>
> and then post the output for analysis.


here's the output of strace:

$ strace -o output bash ./scriptname

<-snip>
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls/i686/sse2/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls/i686/sse2",
0xbfe08608) = -1 ENOENT (No such file or directory)
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls/i686/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls/i686", 0xbfe08608)
= -1 ENOENT (No such file or directory)
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls/sse2/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls/sse2", 0xbfe08608)
= -1 ENOENT (No such file or directory)
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/tls", 0xbfe08608) = -1
ENOENT (No such file or directory)
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/i686/sse2/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/i686/sse2", 0xbfe08608)
= -1 ENOENT (No such file or directory)
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/i686/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/i686", 0xbfe08608) = -1
ENOENT (No such file or directory)
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/sse2/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/sse2", 0xbfe08608) = -1
ENOENT (No such file or directory)
open("/dbdata/u01/app/oracle/product/9.2.0.1.0/lib/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)

stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/bin/bash", 0xbfe08be0) = -1
ENOENT (No such file or directory)
stat64("/usr/kerberos/bin/bash", 0xbfe08be0) = -1 ENOENT (No such file or
directory)
stat64("/usr/local/bin/bash", 0xbfe08be0) = -1 ENOENT (No such file or
directory)

read(255, "gzip $DIR/MADSexport_$curdate.dm"..., 1033) = 80
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/bin/gzip", 0xbfe08b60) = -1
ENOENT (No such file or directory)
stat64("/dbdata/u01/app/oracle/product/9.2.0.1.0/bin/gzip", 0xbfe08b60) = -1
ENOENT (No such file or directory)
stat64("/usr/kerberos/bin/gzip", 0xbfe08b60) = -1 ENOENT (No such file or
directory)
stat64("/usr/local/bin/gzip", 0xbfe08b60) = -1 ENOENT (No such file or
directory)

BTW, it's just one of the scripts that are behaving oddly.



-- 
http://jangestre.wordpress.com
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to