|
From: | Waldirio Manhães Pinheiro |
Subject: | Re: [shell-script] Script entrar no diretório - Será que fiquei louco???? |
Date: | Wed, 14 Apr 2010 09:13:05 -0300 |
Sim sim Olhe um exemplo jeju:[/u/xxx] > cat go.sh #!/bin/bash cd teste pwd jeju:[/u/xxx] > ./go.sh /u/xxx/teste jeju:[/u/xxx] > pwd /u/xxx jeju:[/u/xxx] > []'s 2010/4/14 Reinaldo de Carvalho <address@hidden> > > > 2010/4/13 André Déo <address@hidden <andredeo%40yahoo.com.br>>: > > > [root@localhost /]# cat entra.sh > > #!/bin/bash > > cd /root > > [root@localhost /]# pwd > > / > > Seu script esta sendo executado como um novo processo, após finalizado > o mesmo e encerrado e o prompt retorna ao shell inicial. > > -- > Reinaldo de Carvalho > http://korreio.sf.net > http://python-cyrus.sf.net > > "Don't try to adapt the software to the way you work, but rather > yourself to the way the software works" (myself) > > -- ______________ Atenciosamente Waldirio msn: address@hidden Skype: waldirio Site: www.waldirio.com.br Blog: blog.waldirio.com.br PGP: www.waldirio.com.br/public.html [As partes desta mensagem que não continham texto foram removidas]
[Prev in Thread] | Current Thread | [Next in Thread] |