in reply to How could you make a script think it's running in its own directory?

You could also write a wrapper in bash or whatever shell you use and place that on your PATH.

Something on the lines of
#!/usr/bin/bash cd ~/other/BACKUP/ ./backup.pl
should do the trick.

Lu.
  • Comment on Re: How could you make a script think it's running in its own directory?
  • Download Code