![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| returning to the parent shell after invoking a script within a script | gurukottur | Shell Programming and Scripting | 5 | 09-26-2006 07:05 AM |
| Invoking Shell Script via php | bubeshj | Shell Programming and Scripting | 2 | 06-30-2006 06:09 AM |
| Invoking shell script from html/jsp page | bubeshj | Shell Programming and Scripting | 2 | 06-28-2006 01:53 PM |
| invoking one shell script from other | ajay xavier | Shell Programming and Scripting | 3 | 05-24-2006 03:39 AM |
| invoking an Unix script from a C Program | fermisoft | High Level Programming | 5 | 08-29-2005 09:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
invoking script from /etc/passwd
Hi all,
i'm a newbie trying to accomplish probably a not so difficult task. on my system, if an ssh connenction terminates i launch a telnet to 127.0.0.1. I changed the shell (command) in /etc/passwd to invoke a script that just does this, "telnet 127.0.0.1". my /etc/passwd looks like Code:
root:x:0:0:root:/:/myScript.sh Code:
#! /bin/sh #myScript.sh if [ "$TERM" != "" ] then telnet 127.0.0.1 else <???> fi Code:
root:x:0:0:root:/:/bin/sh Thanks in advance. Last edited by Yogesh Sawant; 04-25-2008 at 03:35 AM.. Reason: added code tags |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|