On Mon, 20 Apr 1998, Adam J. Richter wrote: > How about trying the following: (snip) Actually, needs to be: #!/bin/sh echo logging_modprobe $* > /tmp/modprobe.log.$$ /usr/bin/strace /sbin/modprobe $* >> /tmp/modprobe.log.$$ 2>&1 as 'strace' writes to stderr. Interestingly enough, it starts working when run indirectly . The trace is attached for loading of the SCSI tape driver. > You might also try modifying that shell script to echo something > to standard output, so that you can verify that modprobe has gotten > init's file descriptors. I did this. Nothing makes it to the screen or logs. The success of modprobe under the shell script started me thinking. I renamed /sbin/modprobe to /sbin/modprobe.real and created a stub /sbin/modprobe like this: #!/bin/sh shift /sbin/modprobe.real $* Lo and behold, this does the trick. Sort of bizarre (and possibly a security hole?), but functional. The question of the hour is: What is so different about the environment under a subshell? Perhaps those more knowledgeable can glean some clues from the strace output. Steve