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

Re: Logging of commands in a bash script to a file



On Wednesday, 23 April 2014 19:10:11 -0700,
ty wrote:

> A ambiguous redirect sounds like the variable is empty.
> To demonstrate:
> a=" "
> echo hello > $a
> bash: $a: ambiguous redirect
> Make sure ${VPN_APP_LOG[$N]}is not being set inside the sub-proccess ( )
> and is a valid variable.

Hello, Ty.

Yes, after I realized I was calling that variable outside the loop :-(

Then I used one variable to the logs and I had no problem. Thank you
very much to all for your responses.


Best regards,
Daniel
-- 
Ing. Daniel Bareiro - GNU/Linux registered user #188.598
Proudly running Debian GNU/Linux with uptime:
08:13:58 up 80 days, 10:40, 17 users,  load average: 0,93, 0,74, 0,71

Attachment: signature.asc
Description: Digital signature


Reply to: