LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2011, 04:05 AM   #16
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983

Quote:
Originally Posted by shik28 View Post
Code:
scp shik28@domain1.com:/log/source.txt destination.txt
This works fine.
This is almost the same command you did show in the first post, except for the different domain name. Again, if the error message is "No such file or directory" check carefully the path of the file and at this point the name of the remote server.

Quote:
Originally Posted by shik28 View Post
The file name itself is df.last. I don't know the extension. last is not an extension. It is a part of the filename.
In linux file extensions are less meaningful than windows ones, as the file command demonstrates. Actually it checks for a magic number, that is a invariant identifier at a small fixed offset into the file.

This is to tell you that the presence or absence of a standard filename extension has nothing to do with the scp problem. The issue is to write the correct path of the file to copy and be sure it's actually exists.
 
  


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
scp to invoke files stored in environment variable shik28 Linux - Newbie 10 09-16-2011 03:41 AM
scp truncate text file busy - copying file is not a running binary jetberrocal Linux - Server 3 06-24-2010 03:56 PM
what file(s) are hotkeys stored in? newbiesforever Linux - General 8 09-09-2008 02:04 PM
what file are routes stored in? hcclnoodles Solaris / OpenSolaris 6 10-04-2006 02:46 PM
How to file stored in C:\ using windows abbhatt Linux - Software 3 12-26-2005 10:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:37 AM.

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