If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > truss: non-existent process ignored:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-04, 05:13
MANASH3250 MANASH3250 is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 19
truss: non-existent process ignored:

Hi ,

When i am running some scripts from a shell script the messages are coming below stated . If i am running that script induvidual it's running fine . Please could anybody help me out on this . This is a Production server . Thanks --Manash

"truss: non-existent process ignored: 27372
truss: non-existent process ignored: 27372.out
usage: truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...
truss: non-existent process ignored: 26772
truss: non-existent process ignored: 26772.out
usage: truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...
truss: non-existent process ignored: 27284
truss: non-existent process ignored: 27284.out
usage: truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...
truss: non-existent process ignored: 26834
truss: non-existent process ignored: truss26834.out: non-existent process ignored: 27137

usage: truss: non-existent process ignored: 27137.outtruss
usage: truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...
truss: non-existent process ignored: 27130
truss: non-existent process ignored: 27130.out
usage: truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...
trusstrusstruss: non-existent process ignored: trusstrusstrusstrusstruss: non-existent process ignored: : non-existent process ignored: truss2732227286: non-existent process ignored: truss: non-existent process ignored: : non-existent process ignored: : non-existent process ignored: 27151
truss: non-existent process ignored:
27285truss: non-existent process ignored:
: non-existent process ignored: 2688327303truss 26931 "
__________________
Manash Ranjan
Reply With Quote
  #2 (permalink)  
Old 03-22-04, 05:25
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
show us the script
__________________
Jean-Pierre.
Reply With Quote
  #3 (permalink)  
Old 03-22-04, 05:37
MANASH3250 MANASH3250 is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 19
truss: non-existent process ignored: 27372

I am attaching the script as mq
Attached Files
File Type: txt mq.txt (8.6 KB, 123 views)
__________________
Manash Ranjan
Reply With Quote
  #4 (permalink)  
Old 03-22-04, 08:01
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
I don't see any problem in your 'mq' script.
I have,'t found any 'truss' command in that script, so the problem may be in the calling script.
__________________
Jean-Pierre.
Reply With Quote
  #5 (permalink)  
Old 03-22-04, 21:42
MANASH3250 MANASH3250 is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 19
Hi Aigles .

When i am running the Calling script than i don't find any problem once i am adding this mq scripts the error is coming . I am also attaching here my calling script .

Regards
Manash
Attached Files
File Type: txt prod-script.txt (11.5 KB, 108 views)
__________________
Manash Ranjan
Reply With Quote
  #6 (permalink)  
Old 03-23-04, 02:53
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
I can't find the origin of the problem.

I suggest you to execute your script with the -x option, and to analyze the result.

You can do 'ksh -x prod-script > prod-script.log 2>&1'

or add 'set -x' in your script at the point from where you want to debug the execution ('set +x' debug off)
__________________
Jean-Pierre.
Reply With Quote
  #7 (permalink)  
Old 03-23-04, 03:19
MANASH3250 MANASH3250 is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 19
Hi , When i am doing debugging i am getting the error at cut commands i am pasting the errors here
Please help me out please .

+ cut -c9-
truss: non-existent process ignored: 26911
truss: non-existent process ignored: 26911.out
usage: truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...

LIST=
+ [ ]
+ + [ 1 -ne 58 ]
+ + expr 1 + 1
count=2
+ read line
+ + echo Starting MQSeries Commands.
+ grep CHANNEL(
+ awk { print $1 }
+ tr -d \)
+ cut -c9-
truss: non-existent process ignored: 27372
truss: non-existent process ignored: 27372.out
usage: truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
[-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]functs] \
[-o outfile] command | -p pid ...
__________________
Manash Ranjan
Reply With Quote
  #8 (permalink)  
Old 03-23-04, 03:37
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
Are you sure that you are using the standard 'cut' command ?

Verify by :

which cut or whence cut
On my system, gives : /usr/bin/cut
In your script, try to replace 'cut' by the full path '/usr/bin/cut'

echo "123" | cut -c1 => 1
echo "123" | /usr/bin/cut -c1 => 1
__________________
Jean-Pierre.
Reply With Quote
  #9 (permalink)  
Old 03-23-04, 06:01
MANASH3250 MANASH3250 is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 19
Hi ,

I added /usr/bin/cut but still the same error is giving .
Please help me out .

Regards
Manash
__________________
Manash Ranjan
Reply With Quote
  #10 (permalink)  
Old 03-23-04, 07:35
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
1) I don't know the 'truss' command. What is its purpose ?

2) What happens if you add a simple 'cut' command in your script ?
echo "123" | cut -c1-
Is there an error for this cut command, and is there a result displayed ("1") ?

3)Try to replace the following pipe :

LIST=`echo $line | grep 'CHANNEL(' | awk ' { print $1 } ' |cut -c9- | tr -d "\)"`

by:

LIST=`echo $line | awk '/CHANNEL\(/ { sub(/)/,"",$1) ; print substr($1,9)}' `
__________________
Jean-Pierre.
Reply With Quote
  #11 (permalink)  
Old 03-25-04, 00:57
MANASH3250 MANASH3250 is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 19
Hi ,

echo "123" | cut -c1- is working fine
the result is giving 123 .

Also i tried with replacing the

LIST=`echo $line | grep 'CHANNEL(' | awk ' { print $1 } ' |cut -c9- | tr -d "\)"`

by:

LIST=`echo $line | awk '/CHANNEL\(/ { sub(/)/,"",$1) ; print substr($1,9)}' `

The error is coming

MQ Channel status
========================================

awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
__________________
Manash Ranjan
Reply With Quote
  #12 (permalink)  
Old 03-25-04, 04:56
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
Try with nawk instead of awk

Have you tried to execute your initial script without truss
I have read that truss is an UNIX strace program. All yours error messages comes from this program.
I think that we are on the wrong way when searching the problem inside the script.
__________________
Jean-Pierre.
Reply With Quote
  #13 (permalink)  
Old 03-25-04, 05:51
MANASH3250 MANASH3250 is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 19
Hi ,

I have not used anywhere truss command in my script . You can see
my original script which i uploaded .

Thanks
--Manash
__________________
Manash Ranjan
Reply With Quote
  #14 (permalink)  
Old 03-25-04, 08:27
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
The problem is on your server, not in your script.
Contact your system manager.
__________________
Jean-Pierre.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On