Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

#!/bin/csh
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

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

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.