You could use smbmount //smb_name/share mountpoint -o username=<>, password=<> ...
Of course if you don't have root access or smbmount isn't suid then this method won't work. Greg On Fri, 29 Jun 2001, Friedrich wrote: > Hi, > > I wish to use smbclient to backup some windows shares onto a Linux box. Now > this will be run in a > script so I sould like to have it not prompt for anything. So far I can get > it to retrieve a single > file without prompting with this command : > > smbclient //server/share -U user%password -c "cd location\of\data;get > file1.txt" > > but if I use : > > smbclient //server/share -U user%password -c "cd location\of\data;mget *" > > Then is says : > > Get file file1.txt? > > and this will then stop it from working in a script that is a cronjob. Any > ideas on how I can get > it to just get the files and not ask anything? > > Thanks, Friedrich. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- Greg Rowe Paranoia is a virtue. http://www.therowes.net