02-16-2011
Is maybe mount.smb and sudo available? If so, you could temporarily mount the share (using sudo) in a directory, scp the files through your tunnel, and unmount it again after you're finished.
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have a folder with diff subfolders in my Unix box and now I want to ftp all the floders into my Windows machine. Is there any easy way to do that. When I use the "mget " cmd and try to FTP the files, it throws an error that the sub folder name does not exist.
Can you someone help in... (3 Replies)
Discussion started by: chandu_kalari
3 Replies
2. Shell Programming and Scripting
Hi All,
what is the comand to log off the remote server?
I have 2 servers A, B. I need to find all files older than 7 days on server B and copy over to server A. My logic is:
login the remote server:
=================
ssh hostB
cd /data/test
find . -mtime -7 -ls | awk '{print... (4 Replies)
Discussion started by: Beginer0705
4 Replies
3. UNIX for Dummies Questions & Answers
I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies
4. Shell Programming and Scripting
Hello, I already do some question about this topic. I already establish the conection from the server (Centus) whit the windows PC using SSH. Now I have two problems:
1- The server always ask me about a password to copy the files to the windows pc, I don't know how to avoid this, if someone can... (2 Replies)
Discussion started by: yeestrada
2 Replies
5. Shell Programming and Scripting
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies
6. Shell Programming and Scripting
is there any way to copy files from linux to windoes with out mounting ideally using a script in linux or windows which ever possible (4 Replies)
Discussion started by: robo
4 Replies
7. Shell Programming and Scripting
We would be migrating unix solaries to Linux redhat.
Basically source is unix and target is linux.
i would like to copy entire file system unix/source/* to target linux/souce/*
but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies
8. Shell Programming and Scripting
Need Shell Script to copy files from hp unix to windows server 2008
I tried to google and found some options but nothing worked
I want a script to copy a file in unix to windows server so I can schedule the script on daily basis.Please help me its more needful for me.
Let me know if any... (4 Replies)
Discussion started by: Lucky2Bv
4 Replies
9. Shell Programming and Scripting
Hi All,
I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers.
So i am looking for a script to transfer the file automatically from Linux server to Windows server?
Please advise.
Thanks... (3 Replies)
Discussion started by: arunmanas
3 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine.
Is this possible.?
Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies
LEARN ABOUT OSX
mount_smbfs
MOUNT_SMBFS(8) BSD System Manager's Manual MOUNT_SMBFS(8)
NAME
mount_smbfs -- mount a shared resource from an SMB file server
SYNOPSIS
mount_smbfs [-N] [-o options] [-d mode] [-f mode] [-h] //[domain;][user[:password]@]server[/share] path
DESCRIPTION
The mount_smbfs command mounts a share from a remote server using SMB/CIFS protocol.
The options are as follows:
-N Do not ask for a password. At run time, mount_smbfs reads the ~/Library/Preferences/nsmb.conf file for additional configuration
parameters and a password. If no password is found, mount_smbfs prompts for it.
-o Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man
page for possible options and their meanings. Additional options supported by the mount_smbfs are as follows:
nobrowse
Indicate to the Carbon subsystem that this volume is not to be displayed to the user.
automounted
Set flags on the mountpoint to indicate that the volume has been mounted by the automounter.
nostreams
Don't use NTFS Streams even if they are supported by the server.
soft Make the mount soft. Fail file system calls after a number of seconds.
nonotification
Turn off using notifications for this volume.
-f mode, -d mode
Specify permissions that should be assigned to files and directories. The values must be specified as octal numbers. Default value
for the file mode is taken from mount point, default value for the directory mode adds execute permission where the file mode gives
read permission.
Note that these permissions can differ from the rights granted by SMB server.
-h Prints a help message, much like the SYNOPSIS above.
//[domain;][user[password]@] server[/share]
The mount_smbfs command will use server as the NetBIOS name of remote computer, user as the remote user name and share as the
resource name on a remote server. Domain and/or password may be specified here. If user is omitted the logged in user id will be
used. Omitting share is an error when mount_smbfs is run from the command line, otherwise a browsing dialogue is presented.
path Path to mount point.
FILES
nsmb.conf Keeps static parameters for connections and other information. See man nsmb.conf for details.
EXAMPLES
This example shows the proper url to use to mount the share PUBLIC from the SMB server myserver :
mkdir /smb/public
mount -t smbfs //username:userpass@myserver/PUBLIC /smb/public
This example shows the proper url to use to mount the share PUBLIC from the SMB server myserver as guest:
mkdir /smb/public
mount -t smbfs //guest:@myserver/PUBLIC /smb/public
Note: You should always use the system mount command and never call mount_smbfs directly.
SEE ALSO
mount(2), nsmb.conf(5), mount(8), umount(8)
BUGS
Please report bugs to Apple.
AUTHORS
Boris Popov <bp@butya.kz>, <bp@FreeBSD.org>
FreeBSD March 10, 2000 FreeBSD