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

Re: shell quoting woes



Hi,

[snips:]

Steve Juranich wrote:
> 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

This worked, thank you very much.  I thought that this was the first
thing that I tried but I guess I must have overlooked it as I tried
many variations.


> 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.


Whoops, I am never logged onto a windows machine, :) , I should have
been more careful in the example I chose to include, sorry for the
confusion.


This is now working well,  I have attached it for posterity.



Thanks again,
jereme

-- 
+--------------------------------------------------------------+
Jereme Corrado <jereme@restorative-management.com>
Network Administrator
Restorative Management Corp.

gpg: 1024D/9C39E1F0: 8178 3293 4D36 0012 2FAC  8A2B 4767 A3AB 9C39 E1F0

Attachment: vnc_find_user.sh
Description: Bourne shell script

Attachment: pgpSZtOs3FC21.pgp
Description: PGP signature


Reply to: