LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2009, 04:16 AM   #1
trnz$mr
Member
 
Registered: Oct 2008
Posts: 121

Rep: Reputation: 15
how to handle this command


Sorry to bug you with such pesky questions but, when I come across a command like this:

Quote:
# ./rc.wicd.new

Usage: ./rc.wicd.new {start|stop|restart}
what do I do?

I type in "start"

but it says the command is not found.

i'm using slack 12.2

Last edited by trnz$mr; 02-21-2009 at 04:18 AM.
 
Old 02-21-2009, 04:18 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I guess
Code:
# ./rc.wicd.new start
is what you want.
 
Old 02-21-2009, 04:21 AM   #3
trnz$mr
Member
 
Registered: Oct 2008
Posts: 121

Original Poster
Rep: Reputation: 15
yep!
that was exactly it.
Thanks a bunch
 
Old 02-21-2009, 04:22 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
That looks like a script that starts services. Services are often started like "sudo /sbin/service <name> start".

Your usage would be
./rc.wincd.new start

If this script starts, stops or restarts a service, you may need to use "sudo" to run it as root.
sudo ./rc.wincd.new start
 
Old 02-21-2009, 12:32 PM   #5
trnz$mr
Member
 
Registered: Oct 2008
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
If this script starts, stops or restarts a service, you may need to use "sudo" to run it as root.
sudo ./rc.wincd.new start
Thanks, I'm going to start using it.

How do you go back to your regular user name for root? For instance, I used sh and now my user name for root is "root@ESSID" (don't ask) and I can't go back to "root@myoriginalname", even after reboot. Is there a way to undo it?
 
Old 02-21-2009, 12:50 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Just type exit and hit <enter>.You'll be you again and this is if I understand you correctly.

Last edited by alan_ri; 02-21-2009 at 12:52 PM.
 
Old 02-21-2009, 02:05 PM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by jschiwal View Post
That looks like a script that starts services. Services are often started like "sudo /sbin/service <name> start".

Your usage would be
./rc.wincd.new start

If this script starts, stops or restarts a service, you may need to use "sudo" to run it as root.
sudo ./rc.wincd.new start
Had a beer again?
Quote:
I recently discovered that I have a one beer limit on LQ. After that my grammar & spelling suffer. Drat!
wincd = wicd

Wouldn't it be better copying or moving the old rc.wicd to rc.wicd.old and the rc.wicd.new to rc.wicd?

Last edited by brianL; 02-21-2009 at 02:09 PM.
 
  


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
How to handle the VM configuration? treotan Linux - General 3 02-12-2008 03:30 AM
How would you handle this situation? SlowCoder General 28 08-22-2007 01:01 PM
How to handle SIGPWR? kranti Programming 2 10-13-2006 06:32 AM
How to handle interrupts in C swatisameerp Programming 2 01-17-2006 11:37 AM
Command for changing rmp to something Slack can handle? Oakstaff Slackware 4 02-24-2005 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 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