bash script help
I am having trouble with a bash script, here is the code:
Code:
#!/bin/bash I get an error like it is trying to connect to smb right after this line: smbclient //$TARGET_MACHINE/Outlook $PASSWORD1 -U $USERNAME1 -c "recurse;prompt;mget *;" this is what happens, I get this: smb> Does anyone have any ideas? Does it have anything to do with the space in the username?? Thanks, Dennis |
Hi dennis, I think so (the space in USERNAME killed JFK :))
use: USERNAME1="Doug Milburn" or smbclient //$TARGET_MACHINE/Outlook $PASSWORD1 -U "$USERNAME1" -c "recurse;prompt;mget *;" If you don't quote the user name you are passing an extra parameter to smbclient command. Bye. |
All times are GMT -5. The time now is 08:25 PM. |