LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-06-2008, 11:41 AM   #1
rainballdh
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
what's difference between '::respawn:/bin/sh' and '::respawn:-/bin/sh'?


::respawn:/bin/sh and ::respawn:-/bin/sh
The ::respwan:bin/sh means it will restart /bin/sh when /bin/sh was killed.
i don't know what ::respawn:-/bin/sh means,please tell me.
thanks a lot
 
Old 11-06-2008, 02:25 PM   #2
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 46
Moin,

Quote:
Originally Posted by rainballdh View Post
::respawn:/bin/sh and ::respawn:-/bin/sh
The ::respwan:bin/sh means it will restart /bin/sh when /bin/sh was killed.
i don't know what ::respawn:-/bin/sh means,please tell me.
thanks a lot
from my bash manual:
Quote:
INVOCATION
A login shell is one whose first character of argument zero is a -, or one started with
the --login option.
Jan
 
  


Reply


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
Is there any differences between ::respawn:-/bin/sh and ::respawn:/bin/sh? rainballdh Linux - Newbie 1 11-06-2008 11:17 AM
aliases and the 'sh' shell koodoo Linux - Newbie 14 08-05-2006 05:19 AM
Difference in /bin and /usr/bin tarheel92x Linux - Newbie 2 01-28-2006 10:06 AM
What is the difference between #!/bin/bash and #!/bin/sh? mTorbin Linux - Newbie 5 11-09-2005 01:10 PM
execl: couldn't exec `/bin/sh' Daredevil Linux - Newbie 2 04-12-2004 12:06 PM


All times are GMT -5. The time now is 03:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration