• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in finding pah  RSS feed

 
Joseph Bashir
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to upload a file to the server. I am using windows while the server is running on linux. The path on my side is "D:\testfolder\testimage.jpg", and linux does not understand this path. How can I change this path so linux understands it.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are multiple ways to upload a file to a server.
The classic way is to use ftp.

Assuming your servers name is foo.bar, and you're logging into your home directory on the sever, and like to put the file into your folder testimage (does it exist?)

Once connected to the server, commands normally apply to the server, so let's change to the source-dir first:


if testfolder exists, omit the mkdir.
Windows sometimes assumes you're up- or downloading text-files, not binaries. I'm not sure when and how to handle this - perhaps a switch /b like binary or a seperate command in ftp:

help or ? might help in ftp:

To change the local directory inside ftp use lcd:

be aware of case sensitivity on linux.
 
Scott Cook
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
unix path will have forward slashes instead of backward slashes:
/testfolder/testimage.jpg

Linux will not understand the "D:" part either.

ftp is probably the easiest way to go (as previous poster mentioned)

if you are going to be doing this a lot, the best solution might be to have your sys-admin mount the linux drives onto your pc.

Our company uses the freeware from samba.org to do this.

enjoy!
Scott
[ August 22, 2006: Message edited by: Scott Cook ]
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using samba server too.

You also can trick it, bring you usb flash drive...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!