thanks for your help, I already had the same idea but apparently I can not use if-statements within smbclient command. If I do so, I get the following error message:
Give dir_name as path of the directory you want to check...
Hello,
Anyone out there can help on this problem?
I have a zip file about 34MB containing a file in EBCDIC and is resided on a Windows 2000 server.
This zip file is retrieved and read from a UNIX server via SAMBA "SMBCLIENT" (by default the file is transferred via command bin) and issued... (2 Replies)
I have successfully gotten AIX to print to a windows shared printer with this command:
smbclient -U user%password -W domain -c "print file.ext"
the only problem is: I have this print queue set up on the Windows side to overlay an image to all pages. When printing from samba, the overlay... (2 Replies)
The directory on windows server is renamed and I need to change the directory location on smbclient on unix. How do i do that, please advice. (2 Replies)
Hi,
I am trying to use smbclient to send message to a windows machine.It is showing "connection failed message" . After googled I came to know about "smbfind" which will give me the nodes in my network. In that list the machine name was not present where I was trying to send the message.
... (1 Reply)
you know I am told to get an image of the whole ubuntu system on my server shared folder.
If you have used dd before to get an image of the occupied space on the system please lemme know bout your command.
(I preferably want dd to only get an image of the occupied file system not the free space)... (11 Replies)
Hi All,
I've been facing on this issue.
From SunOS to Windows
/usr/local/samba/bin/smbclient \\IP\<source dir> -D $TARGET_DIR -U dir1/$WINDOWS_USER%$WINDOWS_PWD -c "put $SOURCE_FILE $TAR
GET_FILE;exit"
This command in my shell script work fine but the file saved on windows environment... (3 Replies)
Hi,
So I am writting a script to copy files from Linux to windows using smbclient, I have done this a fair amount of times now. Unfortunately this time I am using a simply if statement to determine if the file exists before beginning the smbclient section.....however if I tab the smbclient... (4 Replies)
Hi All,
Have written a couple of lines to move the contents of a folder from a unix box to a windows location using smbclient (below)
smbclient '{servicename}' -A ~/.smbclientauth -c 'mkdir \test_folder"'
smbclient '{servicename}' -A ~/.smbclientauth -c 'cd "; lcd ";... (4 Replies)
I have the smbclient installed and I am able to see information from the '-L' option. But when I attempt to login I'm getting the "NT_STATUS_BAD_NETWORK_NAME". I was hoping for help, because I'm not sure what is supposed to go into the smb.conf file. My goal is to transfer files from my Linux... (2 Replies)
I am using the below aria2c command to call an API that downloads a file to a directory. Though the process completes and I get "download complete"... aria2c does not exit to the command line, I have to hit enter to get the command line. I am not sure what is wrong. Am I missing something in... (0 Replies)