Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to get file from share drive when filename with spaces using samba client? Post 302908794 by Makarand Dodmis on Thursday 10th of July 2014 11:37:24 AM
Old 07-10-2014
How to get file from share drive when filename with spaces using samba client?

Hi Team,

I am not able to get file name from shared drive when filename have spaces in it.
following command i am using.
Code:
filename="REP00105 - ABC XYZ (SCM)_ 1.TXT"
/hfx/opt/samba220/bin/smbclient \\\\${nt_host}\\${nt_share} ${NT_PASSWORD} -U${NT_USERNAME} -c "cd ${nt_directory}; prompt; mget ${filename}"

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to share the unix file for other client 's access

Hi , I am new to the unix . And right now I have a unix machine "test" . I want to share a folder in the /opt/example .AND I hope when I use a windows machine to access the unix machine ,ep:start->cmd->\\test,I can see the shared folder "example", what shall I do thanks :) (2 Replies)
Discussion started by: floopw
2 Replies

2. Shell Programming and Scripting

Reading a file using sh with spaces in filename

Hi I am trouble parsing through a file with spaces in the filename. I need to grab "supportIDPS/SCM/windows_install/file groups/dds.fgl" and then do a md5sum on it. I am using sh. Any help is appreciated. Here is an example of the input file: 7eedbc9f7902bf4c1878d9e571addf9a ... (4 Replies)
Discussion started by: jekl5
4 Replies

3. Solaris

Is it possible to setup a samba share to always mount to a specific Windows drive letter???

I'm trying to setup Samba in a solaris zone... Is there a way to setup Samba so that every Windows machine that tries to connect to the share always gets it mounted under the same drive letter (e.g. H:)??? My Samba share (in smb.conf) /home/pickup I want that all Window users get it mounted... (3 Replies)
Discussion started by: verdepollo
3 Replies

4. Linux

Samba share script

Hi everyone! I'm trying to run a script when a folder is shared and when it stop being shared. Is there something like .start_share or .stop_share scripts in Samba where I could run some commands?:confused: edit: maybe with a wrapper in smbmount but I share folders via nautilus. Any ideas? (0 Replies)
Discussion started by: funyotros
0 Replies

5. Linux

Auto map network drive using SAMBA with batch file

Hi everyone. I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are: 1) to have the share automatically map as the P: drive to members of the employees group 2) to have the share automatically map as the t: drive to members of the tech... (0 Replies)
Discussion started by: unassassinable
0 Replies

6. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

7. Windows & DOS: Issues & Discussions

Script that, if file exists in Samba share, moves file to Unix server

I'm looking to do pretty much what the title says. I want a script that runs, it can run on Unix or Windows, doesn't matter, and searches a Samba shares for a .txt file. If the file exists, the script will move (or possibly copy) the file from the Samba share into a directory on our Unix... (3 Replies)
Discussion started by: twcostello
3 Replies

8. Linux

Force file ownership of a domain user in samba Share

Hi, I am using RedHat 6 and ,I am trying to force a domain user (from Windows AD) to take ownership of a file when it is created, or copied on a Samba share. I have managed to get this working for the root user using the code below: COMMENT = IT Data Share path =... (2 Replies)
Discussion started by: p2bas
2 Replies

9. Red Hat

Samba share - currently not working

Long running samba share. Never have any problems, Suddenly started asking windows users for password - which doesnt work. Tried to manually reset smb password and manually map - still wrong password. Restart samba? (2 Replies)
Discussion started by: psychocandy
2 Replies

10. UNIX for Advanced & Expert Users

Mounting a samba share

Hi, I need to mount a directory from a Windows server to a CentOS box. The Windows server used is Windows Server 2003, and the path to the directory that I want to mount on CentOS is C:\Tomcat6\webapps\NASApp\logs. I am not sure of the correct way to mount this on CentOS, as most of the... (2 Replies)
Discussion started by: anaigini45
2 Replies
NDRDUMP(1)						    System Administration tools 						NDRDUMP(1)

NAME
ndrdump - DCE/RPC Packet Parser and Dumper SYNOPSIS
ndrdump [-c context] {pipe} {function} {in|out} {filename} ndrdump [pipe] ndrdump DESCRIPTION
ndrdump tries to parse the specified filename using Samba's parser for the specified pipe and function. The third argument should be either in or out, depending on whether the data should be parsed as a request or a reply. Running ndrdump without arguments will list the pipes for which parsers are available. Running ndrdump with one argument will list the functions that Samba can parse for the specified pipe. The primary function of ndrdump is debugging Samba's internal DCE/RPC parsing functions. The file being parsed is usually one exported by wiresharks "Export selected packet bytes" function. The context argument can be used to load context data from the request packet when parsing reply packets (such as array lengths). VERSION
This man page is correct for version 4.0 of the Samba suite. SEE ALSO
wireshark, pidl AUTHOR
This utility is part of the Samba[1] suite, which is developed by the global Samba Team[2]. ndrdump was written by Andrew Tridgell. This manpage was written by Jelmer Vernooij. NOTES
1. Samba http://www.samba.org/ 2. Samba Team http://www.samba.org/samba/team/ Samba 4.0 06/17/2014 NDRDUMP(1)
All times are GMT -4. The time now is 06:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy