[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Colocar o ip em arquivo
From: |
Eliphas Levy Theodoro |
Subject: |
Re: [shell-script] Colocar o ip em arquivo |
Date: |
Mon, 21 Jan 2002 14:35:58 -0200 (BRST) |
Bash, @ 12:46:
> Infelizmente não resolveu o problema, continuo com o mesmo erro.
>
> Não seria algo dentro do script???
>
> #!/bin/bash
>
> ip_atual=`/sbin/ifconfig eth0 | /bin/grep inet | /usr/bin/cut -d : -f 2 |
> /bin/awk '{print $1}'`
> ip_antigo=`/usr/bin/cut -d " " -f 2 /etc/httpd/conf/ip.conf`
>
> if [ "$ip_atual" != "$ip_antigo" ]
> then
> echo "NameVirtualHost $ip_atual" > /etc/httpd/conf/ip.conf
> /etc/init.d/httpd restart
> fi
/sbin/ifconfig
/bin/grep
/usr/bin/cut
/bin/awk
/etc/init.d/httpd
Veja se um desses existe. Olha só aqui no meu CL-6.quase-sete:
/sbin/ifconfig: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
linked (uses shared libs), stripped
/bin/grep: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
linked (uses shared libs), stripped
/usr/bin/cut: can't stat `/usr/bin/cut' (No such file or directory).
/bin/awk: symbolic link to gawk
/etc/init.d/httpd: can't stat `/etc/init.d/httpd' (No such file or
directory).
Aqui não tem o cut e o httpd nesses lugares:
$ which cut httpd
/bin/cut
/etc/rc.d/init.d/httpd
--
Eliphas
Anyone sending unsolicited bulk email (UBE, SPAM) to this address will
be charged a $25 handling fee plus a $5 network traffic fee per
started kilobyte. By extracting my address from this message or its
header, you agree to these terms.
Nevertheless, spammers trying to auto-extract addresses from this
message will definitely want to include address@hidden, address@hidden,
and address@hidden
- RES: [shell-script] Colocar o ip em arquivo, Julio Cezar Neves - DISB.O, 2002/01/21
- Re: RES: [shell-script] Colocar o ip em arquivo, Bash, 2002/01/21
- Re: RES: [shell-script] Colocar o ip em arquivo, Fahrinha (Nautilus), 2002/01/21
- Re: RES: [shell-script] Colocar o ip em arquivo, Bash, 2002/01/21
- Re: RES: [shell-script] Colocar o ip em arquivo, Silvano B. Dias, 2002/01/21
- Re: RES: [shell-script] Colocar o ip em arquivo, Bash, 2002/01/21
- Re: RES: [shell-script] Colocar o ip em arquivo, Silvano B. Dias, 2002/01/21
- Re: RES: [shell-script] Colocar o ip em arquivo, Bash, 2002/01/21
- Re: [shell-script] Colocar o ip em arquivo,
Eliphas Levy Theodoro <=
- Message not available
- Re: [shell-script] Colocar o ip em arquivo, Bash, 2002/01/21