1832865 Members
2768 Online
110048 Solutions
New Discussion

Ksh log out message.

 
SOLVED
Go to solution
Mike Jeff
Occasional Contributor

Ksh log out message.

Hi everyone,

My problem is when I logout, I get the message:

"ksh: l: Arguments must be %job or process ids"

Any ideas?
6 REPLIES 6
RAC_1
Honored Contributor
Solution

Re: Ksh log out message.

Check your profile. Check for the trap command and check what it does??

Anil
There is no substitute to HARDWORK
Alex Lavrov.
Honored Contributor

Re: Ksh log out message.

WEll, it seems that in your logout script, you have some command that produces this output. Check in your profile file which script is it and try to debug it.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Geoff Wild
Honored Contributor

Re: Ksh log out message.

Also check for .logout

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Stephen Keane
Honored Contributor

Re: Ksh log out message.

In particular look for something like

jobs -l

Mike Jeff
Occasional Contributor

Re: Ksh log out message.

Thanks for all your quick responses everyone! I did forget to mention that the .logout file did not exist for this login.

The problem was with /etc/profile. The following entry had been commented out by one of my colleagues:

trap "echo logout" 0

Mike Jeff
Occasional Contributor

Re: Ksh log out message.

Thanks to all that helped!

The problem was caused by the following entry in /etc/profile being commented out:

trap "echo logout" 0