Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-05-2005, 03:52 PM   #1
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
simple shall programming question

I want to do a fle that every time I write it

it goes and do

su -
killall gaim
Poweroff -p

I'm sure it's possible, can you help me out on this one?
Old 11-05-2005, 04:12 PM   #2
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
killall gaim
poweroff -p

works better if you actually would use sudo, so it doesn't prompt for password


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
very simple bash programming question!? Thinking Programming 7 06-01-2005 11:07 AM
Simple C programming Spooky Programming 5 10-22-2004 03:16 AM
simple question on shell programming stupid_guy Programming 5 03-10-2004 02:07 PM
Simple C Programming Question.. Bolt Programming 6 06-03-2003 12:05 PM
A simple perl programming question J_Szucs Programming 12 07-14-2002 10:03 PM

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

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