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

Re: shell quoting woes



I don't think this is a quoting problem.  The problem is your hash mark.  
Remember that's a comment character, so you'll need to escape it (put a \ in 
front).

Try something like this:

nmblookup -R $(eval echo "$username\#03") -U $nbns 

I don't think it's necessary to use the '\" stuff.

Good luck.

BTW,

> $ nmblookup -R "jereme#03" -U merlin
> 
>    And I get back:
>    querying jereme on 192.168.0.200
>    name_query failed to find name jereme#03

Is this what you expect? I've never used nmblookup, but it looks to me like 
your lookup command is failing as well.


--------------------------------------------------------------------------
Stephen W. Juranich                             sjuranic@ee.washington.edu
Electrical Engineering             http://students.washington.edu/sjuranic
University of Washington                http://ssli.ee.washington.edu/ssli


 /"\                          || 
 \ /  ASCII RIBBON CAMPAIGN   ||  NO ATTACHMENTS
  X   AGAINST HTML MAIL       ||  NO STATIONERY
 / \  AND POSTINGS            ||  NO GRAPHICS



-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: