LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   File Manager SU mode using expect (https://www.linuxquestions.org/questions/programming-9/file-manager-su-mode-using-expect-47189/)

Allen614 02-26-2003 01:29 AM

File Manager SU mode using expect
 
One thing I always liked in KDE was the Filemanager SU Mode. I wrote this simple script using expect to take it's place when using any window manager.



#!/usr/bin/expect

spawn "su"
expect -re "Password:"
send "zxcvbn\r"
expect -re "#"
send "nohup fr\r"
expect -re "#"


fr=FileManager
zxcvbn=su password


All times are GMT -5. The time now is 02:33 PM.