LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-06-2008, 10: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, 01:25 PM   #2
jan61
Member
 
Registered: Jun 2008
Posts: 235

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



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

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

All times are GMT -5. The time now is 06:44 PM.

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