LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-09-2004, 04:38 PM   #1
Julianus
Member
 
Registered: Nov 2003
Location: Germany
Distribution: Ubuntu 8.04
Posts: 39

Rep: Reputation: 15
How to copy in a script files to a samba folder?


I have connected my Linux box to a Windows XP PC, and I can access the shared folder at smb://192.168.0.101/SharedDocs/etc.

To copy files I usually open the shared folder in a Konqueror window and drag them in or out.

Now, I would like to automize a backup procedure and put a copy of my backup file to the shared folder.

How do I access a shared folder in a script?

When in a console I say "cd smb://192.168.0.101/SharedDocs/etc." I get a "No such file or directory" message.

Many thanks


Julianus
 
Old 10-09-2004, 07:29 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
you'll have to mount the smb-fs to somewhere first. since i don't use samba in an unix environment (better go with nfs here) i can't tell you how to do that, but the manpages of samba, smbmount or so.. should give you a hint.

sl mritch.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need script to copy all files containing a certain string to a directory dc6463 Programming 21 04-18-2013 01:56 PM
starting script, init by copy/create file in (samba) folder? muab Linux - General 7 06-22-2005 06:02 PM
will this script copy only certain files? verbatim Programming 5 04-28-2005 09:28 AM
need a script to delete all files from a folder and subfolders cccc Programming 1 03-04-2005 10:54 AM
Foreach script to copy files gone wrong... clue? xiaodown Programming 2 11-02-2004 11:00 PM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration