Re: SUID and getting the basename

2002-10-11 Thread Steve Grazzini
Steve Main <[EMAIL PROTECTED]> wrote: > > I have a script that will run with the SUID bit set. This of course has > generated a bunch of problems. As I have been working through them I have > come across one that I just can't seem to figure out. > > I want to get this ( or some equivalent) to

RE: SUID and getting the basename

2002-10-11 Thread nkuipers
You need the program name, hence the $0. But you've wrapped the path in backticks, which Perl interprets as an OS command. I think you mean single quotes, but double quotes are better for $0 interpolation: my $oraProgName = "/path/to/$0"; You could also use the caller function, for example: