LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2011, 07:17 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Use a file in remote server


I have a file ( /tmp/my_file.txt) in local server , I have a script as below , it works fine.

for file in /tmp/my_file.txt ; do

...
...

done


Now , if the file ( /tmp/my_file.txt ) is in remote server , can advise what can i do ? thx
 
Old 04-02-2011, 07:35 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Your question is pretty light on the details, but you should only have to mount the remote share to a local directory; at that point, software will treat the remote files as if they were on the same system.
 
Old 04-02-2011, 08:58 PM   #3
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Quote:
Originally Posted by MS3FGX View Post
Your question is pretty light on the details, but you should only have to mount the remote share to a local directory; at that point, software will treat the remote files as if they were on the same system.
thanks reply ,

I am not prefer to use mount as I only read the file occasionally not frequently .
 
Old 04-02-2011, 10:40 PM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by MS3FGX View Post
Your question is pretty light on the details, but you should only have to mount the remote share to a local directory; at that point, software will treat the remote files as if they were on the same system.
may be I explain it more detail , I just would like the use "for file in /tmp/my_file.txt , do .... " , but the file /tmp/my_file.txt is in remote server , can advise how can I read this remote file ? thx
 
  


Reply



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
Parse file from remote server to caculate count of string existence in that file saurabhmehan Linux - Newbie 2 08-30-2010 12:30 AM
How to download a file to my PC from a remote server? Atwin General 4 09-03-2008 05:37 AM
remote file storage server jason.andersen Linux - Newbie 1 05-16-2008 09:25 AM
Remote File Server SBFree Linux - Newbie 8 03-28-2005 10:19 AM
Remote File Server anon111 Linux - General 1 12-30-2004 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration