LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2003, 01:29 AM   #1
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Manager Super User mode Hans Troost Mandriva 3 08-19-2005 02:03 PM
file manager - super user mode ?? im_ka Fedora 3 02-05-2004 09:50 PM
File Manager - Super User Mode iNFERiON Linux - Newbie 1 12-23-2003 08:19 AM
Super Mode File Manager awtoc123 Red Hat 1 10-29-2003 09:36 AM
file manager in su mode hhegab Linux - Software 3 05-08-2003 12:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration