Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to be able to quickly start smbclient to a specific directory without typing or copying it to the shell command line, but just sticking it in a script doesn't seem to work...

smbclient -W blah -U name -D "really long directory location" server/service

I've made it executable, but when I run it via ./smbcommand it does nothing. Normally if I execute it from the command line, it asks for a password.

share|improve this question

Try csh -x ./smbcommand - at least you will see if the shell executes your script or not.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.