in reply to Move damit!

In addition to the comments made elsewhere in this thread I have a trick that I use on those rare occations that I use system and it doesn't work for one reason or another. If you do this:

system('set -xv ; myCommand arg1 arg2 argv');
the shell will show you exactly what it is executing as it does so. You wouldn't want to do that in production but for troubleshooting it works.


Peter L. Berghold -- Unix Professional
Peter at Berghold dot Net
   Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.