in reply to RE: RE: RE: chdir vs. shell behavior
in thread chdir vs. shell behavior
and my distinctuser.pl user:.bashrc contained: # last line exec /usr/global/distinctuser.pl logout
So, now that I had everything setup, I logged in. BOOM!!! At the end of .bashrc, we get perl, and the end of perl we call bash (and .bashrc again), and over and over. I just stood there looking at the screen wondering for a second or two why I was getting 800 printouts of fortune.# check for files, connect via DBI, make toast, etc... chdir('/bar'); system('/bin/bash'); exit;
|
|---|