LinuxQuestions.org
Help answer threads with 0 replies.
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, 08:17 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
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, 08:35 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 09: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, 11:40 PM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
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.
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


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


All times are GMT -5. The time now is 08:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration