Re: Shell program question

2002-08-15 Thread Kevin Myers
On Wed, 14 Aug 2002 20:09:58 +0700, I wrote: >When run from a normal shell, test.sh finishes and leaves the other two >scripts running as expected. > >When test is run as the 'login shell', everything finishes when the user >logs out. > >Why? Thanks to Anthony (again) for suggesting using nohup

Re: Shell program question

2002-08-14 Thread Kevin Myers
On Wed, 14 Aug 2002 19:33:08 +0700, you wrote: >Interesting situation here with that in place: I'm using sudo to allow users >to control the DSL connection. One of the scripts is supposed to stay >running in the background when the user logs off, but when I use the menu >as the shell it is kille

Re: Shell program question

2002-08-14 Thread Kevin Myers
On Tue, 13 Aug 2002 07:48:38 -0400, you wrote: >I think you want to set your users to use an program or script as soon as >they login, with no other choice. If that is what you want, just edit >/etc/passwd and change their shell to the program or script that you want >them to run. Interesting si

Re: Shell program question

2002-08-13 Thread Anthony E. Greene
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13-Aug-2002/16:54 +0800, Roger <[EMAIL PROTECTED]> wrote: >I want to have a shell script for telnet, the other users must use it >without any interactivities, I remember there is a way in shell >programing that we can write some commands of some ap

Re: Question about shell program

2002-08-13 Thread Mike Burger
man expect However, it's a bad idea to have a script that telnets in without any prompting to the user. Telnet, itself, is inherently insecure, of its own accord, as it sends the username and password out in clear text, and there's no encryption of the session, either. Add to that, now that

Question about shell program

2002-08-13 Thread Roger
Title: Message Hi   I want to have a shell script for telnet, the other users must use it without any interactivities, I remember there is a way in shell programing that we can write some commands of some applications in shell script , such as open, user, passwd of ftp, bash would transfer t

Shell program question

2002-08-13 Thread Roger
Hi I want to have a shell script for telnet, the other users must use it without any interactivities, I remember there is a way in shell programing that we can write some commands of some applications in shell script , such as open, user, passwd of ftp, bash would transfer these commands to the a

Re: shell program

2001-05-03 Thread Kapil Sharma
thanks --- Thierry ITTY <[EMAIL PROTECTED]> wrote: > maybe tar or cpio could do it ? > something like > > on local system : > cd maindir; find ./ -name '*.s3d' -print | cpio -o > > archive.file > > transfer archive file > > on remote system > cd maindir; cpio -id < archive.file > > or even >

Re: shell program

2001-05-03 Thread Duncan Hill
> >I want to write a program and need some help: > >1: The program should search for *.s3d files in parent > >as well as sub directories > >2: create those directories /sub directories on remote > >system if it doesn't exist > >3: copy all the files to remote system in exact > >direxctories as i

Re: shell program

2001-05-03 Thread Thierry ITTY
maybe tar or cpio could do it ? something like on local system : cd maindir; find ./ -name '*.s3d' -print | cpio -o > archive.file transfer archive file on remote system cd maindir; cpio -id < archive.file or even cd maindir; find ./ -name '*.s3d' -print | cpio -o | remsh remote "(cd maindir

shell program

2001-05-03 Thread Kapil Sharma
Hi, I want to write a program and need some help: 1: The program should search for *.s3d files in parent as well as sub directories 2: create those directories /sub directories on remote system if it doesn't exist 3: copy all the files to remote system in exact direxctories as it is in the client