If you need to run something as root, why not set up a cronjob as root
running that script?
> -----Original Message-----
> From: Jay Sethi
> [mailto:oracledba-ezmlmshield-x84237029.[Email address protected]
> Sent: Tuesday, August 31, 2004 2:49 PM
> To: LazyDBA Discussion
> Subject: su'ing in a UNIX script
>
>
> Hi,
>
> I need to pass the Password to the superuser command as follows:
>
> su - superuser_id
>
> As is, the above when executed from the command line expects
> after the string "Password:" on the next line.
>
> I can not get root privileges.
>
> Thanks.
> Jay
>
>
>
>
> --------
> website: http://www.LazyDBA.com
> Please don't reply to RTFM questions
> Oracle documentation is here: http://tahiti.oracle.com
> To unsubscribe: see http://www.lazydba.com/unsubscribe.html
> To subscribe: see http://www.lazydba.com
> By using this list you agree to these
> terms:http://www.lazydba.com/legal.html
>
>
Oracle LazyDBA home page