Add a comment. Active Oldest Votes. Improve this answer. StackzOfZtuff 5 5 bronze badges. JayMomaya check this serverfault. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Podcast Making Agile work for data science. Top tip. Niels Tolstrup Niels Tolstrup 4 4 bronze badges. What if the script is running on the Unix side? The link is dead — gnibbler. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta.
New post summary designs on greatest hits now, everywhere else eventually. Related 0. Override what workgroup is used for the connection. This may be needed to connect to some servers. The default value if this parameter is not specified is This number is the port number that will be used when making connections to the server.
The standard well-known port number for the server is , hence the default. This parameter is not normally specified. Must be followed by the name of a tar file, tape device or " - " for standard output. May be useful to set debugging low -d0 to avoid corrupting your tar file if using " - ". Mutually exclusive with the x flag. Unless the -D option is given, the tar files will be restored from the top level of the share. Must be followed by the name of the tar file, device or " - " for standard input.
Mutually exclusive with the c flag. I : Include files and directories. Is the default behavior when file names are specified above. Causes tar files to be included in an "extract" or "create" and therefore everything else to be excluded. See example below. File name globbing does not work for included files for extractions yet. X : Exclude files and directories. Causes tar files to be excluded from an extract or create.
File name globbing does not work for excluded files yet. Must be followed by a valid greater than zero blocksize. Only back up files that have the archive bit set.
Useful only with the c flag. N : Newer than. Must be followed by the name of a file whose date is compared against files found on the share during a create. Only files newer than the file specified are backed up to the tar file. Causes the archive bit to be reset when a file is backed up. Useful with the g and c flags. Change to initial-directory before starting. Probably only of any use with the tar -T option.
This is particularly useful in scripts and for printing stdin to the server, e. If command is specified, the? If no command is specified, a list of available commands will be displayed. If shell-command is specified, the! If no command is specified, a shell will run.
If directory-name is specified, the current working directory on the server will be changed to the directory specified. This operation fails if for any reason the specified directory is inaccessible. If no directory-name is specified, the current working directory on the server will be reported.
The client will request that the server attempt to delete all files matching mask from the current working directory on the server. A list of the files matching mask in the current working directory on the server will be retrieved from the server and displayed. Copy the file called remote-file-name from the server to the machine running the client.
If specified, name the local copy local-file-name. Note that all transfers in smbclient are binary. See also the lowercase command.
If directory-name is specified, the current working directory on the local machine will be changed to the directory specified. If no directory name is specified, the name of the current working directory on the local machine will be reported.
Toggle lowercasing of file names for the get and mget commands. When lowercasing is toggled ON , local file names are converted to lowercase when using the get and mget commands.
This command allows the user to set up a mask which will be used during recursive operation of the mget and mput commands. The masks specified to the mget and mput commands act as filters for directories rather than files when recursion is toggled ON.
0コメント