[Asterisk-Users] Re: echo system command and set the results to a new variable

2005-08-30 Thread Michel Koenen
From: Henry Junior [EMAIL PROTECTED]I want to issue a System cmd in my dialpan that is similar to the unix echo command stated above. *EXCEPT* that I want to pipe theresults into a *new* variable (vs a text file.)Ideally, what would happen is in my diaplan I would issue the 'echo |date' command

[Asterisk-Users] Re: echo system command and set the results to a new variable

2005-08-29 Thread Henry Junior
I am looking to issue a 'System cmd' that will echo the results into   a new variable -- can anyone tell me the correct way to do this? example: at the terminal I am currently able to issue this command:   echo | date date.txt Do you want to run that command in the shell? This pipes the output

[Asterisk-Users] Re: echo system command and set the results to a new variable

2005-08-29 Thread Henry Junior
As far as I know ${EPOCH} would not work because I need the results to be similar to this format: Mon Aug 29 18:32:45 EDT 2005What about variable ${EPOCH} ? ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list

Re: [Asterisk-Users] Re: echo system command and set the results to a new variable

2005-08-29 Thread C F
I don't see why, since most programms (asterisk included) when using the date and time will be able to use the ${EPOCH} format. On 8/29/05, Henry Junior [EMAIL PROTECTED] wrote: As far as I know ${EPOCH} would not work because I need the results to be similar to this format: Mon Aug 29 18:32:45