For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2006 > Using positional variables with su









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Using positional variables with su
mr_scary

2006-09-29, 7:57 am

I would like to invoke a Perl script using a non-root user, say
sql_user.

# su - sql_user -c 'command var1'

But the positional variable is not recognized. How do I gain access to
it?

Peter

Manish

2006-09-29, 6:57 pm

what error do you get?

mr_scary wrote:
> I would like to invoke a Perl script using a non-root user, say
> sql_user.
>
> # su - sql_user -c 'command var1'
>
> But the positional variable is not recognized. How do I gain access to
> it?
>
> Peter


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com