shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

string retorno da funcao


From: RAUL LEOPOLDO LONGHI
Subject: string retorno da funcao
Date: Tue, 30 May 2006 17:24:13 -0300

buenas galera,

sabe como é, as vezes a cabeça resolve nao funcionar e nao tem jeito.
Estou tento dificuldades com o seguinte...

estou desenvolvendo um shell, onde neste, tenho a seguinte função:

is_time() {
       now=`date|awk '{print $4}'`
       $now
}

até aqui tranquilo. O meu problema é que estou tentando pegar esse
retorno e atribuir a uma variavel, mas nao tah dando certo.

start_time=is_time         (nao da certo)

start_time=$(is_time)         (nao da certo)

alguém viu onde estou 'ratiando'?

Att,
--
RAUL LEOPOLDO LONGHI
address@hidden
Skype: xraulanderx
http://desenv.sytes.net/gallery/
Debian GNU/Linux - User Linux 358369


reply via email to

[Prev in Thread] Current Thread [Next in Thread]