I need to run clean up on a user account at logout.
I have added .logout but on logout, I get an illegal variable name msg. I have changed shells from sh, which did not run the .logout, to csh and tcsh which does try to run .logout but gives the illegal variable name error.
When I run "sh .logout" it works fine. What is changing on logout and how do I fix this??
Thanks
I have added .logout but on logout, I get an illegal variable name msg. I have changed shells from sh, which did not run the .logout, to csh and tcsh which does try to run .logout but gives the illegal variable name error.
When I run "sh .logout" it works fine. What is changing on logout and how do I fix this??
Thanks
Code:
#!/bin/tcsh -
ROT=$(/bin/date "+%b%d%y%H%M")
#CAPTOOL=/usr/local/bin/mencoder
#STORE=/my/dir
/usr/local/bin/mencoder mf://xray*.jpg -mf fps=10 -o xray$ROT.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=800
/bin/rm /my/dir/xray*.jpg