• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Problem in finding pah

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using samba server too.

You also can trick it, bring you usb flash drive...
 
It runs on an internal combustion engine. This ad does not:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic