The UNIX and Linux Forums  

Go Back   O UNIX e Linux Forum > Top Fóruns > UNIX para Dummies Perguntas & Respostas
.
google unix.com



UNIX para Dummies Perguntas & Respostas Se não tiver certeza de onde se pode postar uma pergunta Unix ou Linux, postá-lo aqui. Todos os UNIX e Linux novatos bem vindos!

Mais UNIX e Linux Fórum Tópicos Você pode achar Helpfull
Fio Thread Starter Fórum Respostas Última postagem
este script no crontab efeito domingo 9? thepurple Sun Solaris 2 10-05-2007 05:31
propriedades vi shriashishpatil UNIX para Dummies Perguntas & Respostas 2 04-20-2007 02:27
Desativar temporariamente efeito de "set-e em ksh ugeek Programação Shell Script e 1 03-28-2007 05:21
Efeito da preferência do Kernel sriram.ec UNIX & avançada para usuários experientes 2 03-15-2006 01:43
recursivos efeito! sskb UNIX para Dummies Perguntas & Respostas 2 01-30-2003 12:05

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
Linkback Thread Tools Pesquisar este Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-21-2006
Chiefos Chiefos is offline
Usuário
  
 

Join Date: Jun 2006
Lugares: 28
Como propriedades efeito script?

Oi,

Tenho notado que rm irão realizar-se completamente diferente do rm-fi. O que o padrão de como eu coloco minhas opções para o script em relação à forma como irá agir.

ou seja,

rm-fi como tratar a remover Interative mas
rm-se a considera como forçado

Thansk, Chris.
  #2 (permalink)  
Old 06-21-2006
blowtorch's Avatar
maçarico blowtorch is offline Forum Advisor  
Adepto
  
 

Join Data: dezembro 2004
Local: Singapura
Posts: 2.350
Para ser honesto, fiquei surpreso ao descobrir que o e-f-i opções trabalham em conjunto. Mas, verificando a página man (em HP e domingo), eu encontrei o seguinte:
Em HP-UX:
Código HTML:
rm recognizes the following options:

           -f   Force each file or directory to be removed without prompting
                for confirmation, regardless of the permissions of the
                entry.  This option also suppresses diagnostic messages
                regarding nonexistent operands.

                This option does not suppress any diagnostic messages other
                than those regarding nonexistent operands.  To suppress all
                error message and interactive prompts, the -f option should
                be used while redirecting standard error output to
                /dev/null.

                This option ignores any previous occurrence of the -i
                option.

 Hewlett-Packard Company            - 1 -   HP-UX Release 11i: November 2000

 rm(1)                                                                 rm(1)

           -i   Write a prompt to standard error requesting confirmation
                before removing each entry.
No Solaris:
Código HTML:
    -f    Removes all files (whether write-protected or not)  in
           a  directory  without  prompting the user. In a write-
           protected directory, however, files are never  removed
           (whatever  their permissions are), but no messages are
           displayed. If the removal of a write-protected  direc-
           tory  is  attempted,  this option will not suppress an
           error message.

     -i    Interactive. With this option, rm prompts for  confir-
           mation  before removing any files. It overrides the -f
           option and remains in  effect  even  if  the  standard
           input is not a terminal.
Então, se você executar o "rm-fi" na HP, que é interativa, mas o "rm-se" é forçada, conforme especificado na página man. Mas, no Solaris, se o "-i" é especificado, então o "-f" é ignorado, independentemente do local onde ela ocorre.
Closed Thread

Marcadores

Thread Tools Pesquisar este Thread
Pesquisar este Thread:

Pesquisa Avançada
Display Modes Esta taxa Thread
Esta taxa Thread:

Destacamento Regimento
Você não pode postar novas threads
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar suas postagens

BB code é Ligado
Smilies são Ligado
[IMG] código é Ligado
Código HTML é Desligado
Trackbacks são Ligado
Pingbacks são Ligado
Refbacks são Ligado




Todos os horários são GMT -4. A hora é agora 08:08.


Powered by: vBulletinCopyright © 2000 - 2006, Jelsoft Enterprises Limited. Língua Traduções Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
O UNIX e Linux Fóruns Content Copyright © 1993-2009. Todos os Direitos Reserved.Ad Gestão por RedTyger

Content Relevant URLs por vBSEO 3.2.0