2012/6/22 Camaleón <noela...@gmail.com>:
> On Fri, 22 Jun 2012 12:34:40 +0800, Umarzuki Mochlis wrote:

>> #!/bin/bash
>> echo "Username? then [ENTER]:"
>> read username
>> id=`/opt/zimbra/bin/mysql -e 'use zimbra;select id,comment from mailbox;' | 
>> grep $username | cut -f 1` mkdir /tmp/$username 2>/dev/null
>> for i in `egrep '(1[8-9]|2[0-2]) Jun 2012'
>> /opt/zimbra/store/0/$id/msg/0/* | cut -d : -f 1 | uniq` do
>> cp $i /tmp/$username
>> done
>>
>> there must be something that i had missed...
>
> Print/echo the $id variable to check for its current value as seen in
> runtime by your script :-?


i had checked with echo that $id indeed output a id and running

if i put the id value exactly as output of "/opt/zimbra/bin/mysql -e
'use zimbra;select id,comment from mailbox;' | grep $username | cut -f
1", it worked

what else could should i look for?
-- 
Regards,

Umarzuki Mochlis
http://debmal.my


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cahw9mby7dtggtuyveoaetagmvspgyqayvpvz52nnfknmb7m...@mail.gmail.com

Reply via email to