Hi,

This kind of "su- shell" command works perfectly there. In replacing the "oracle/oracle" user/password by yours and the "sqlplus" command by the "rsync" one, the task will certainly be up and running.

-- put shell("su - oracle -c" && quote & "sqlplus" && char 7 to -1 of item itemoffset("Login=",PostIn) of PostIn & "/" & \ -- char 8 to -1 of item itemoffset("Passwd=",PostIn) of PostIn && "@" & \ -- char 9 to -1 of item itemoffset("TmpFile=",PostIn) of PostIn & quote & return & "oracle") into Retour

Hope this can help ;-)

Best,
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


Le 16 mai 08 à 12:02, Kay C Lan a écrit :

On Fri, May 16, 2008 at 6:09 AM, Sarah Reichelt <[EMAIL PROTECTED] >
wrote:


As an example, if I want to get a detailed directory listing in
Terminal, I use:   ls -la
In Rev, I would use:  put shell("ls -la") into fld "Listing"


But what if I need to look into a locked directory, one that in terminal I'd use sudo ls -la ? How do I pass the command and the password. In Terminal I always do the sudo + command, it then asks for my password which I enter.
How do I do these 2 steps in Rev?

Thanks
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to