How to program in unix

This is a discussion on How to program in unix within the Linux Programming forums, part of the Platform Specific Boards category; Update: Ya, i'm still trying. I tried sftp this time instead of ftp and "lpwd" works. When i type in ...

  1. #16
    Registered User Cpro's Avatar
    Join Date
    Oct 2006
    Posts
    149
    Update:
    Ya, i'm still trying. I tried sftp this time instead of ftp and "lpwd" works.
    When i type in "pwd" or "lpwd" i get :
    Code:
    sftp> pwd
    Remote working directory: /home/name
    sftp> lpwd
    Local working directory: /home/name
    When i try "lcd" to change my local directory to my desktop or my c drive:
    Code:
    sftp> lcd "C:\Documents and Settings\User\Desktop"
    Bad escaped character '\\D'
    sftp> lcd C:\
    Couldn't change local directory to "C:\\": No such file or directory
    Any new suggestions?
    My instructor suggested securefx so we could just drag and drop the files, however i believe you have to pay for it after the trial (haven't tired it yet). Are there any similar programs to this (where you can just drag and drop your files) available for free?

    (Btw, I have Windows XP MCE)

    Thanks.
    IDE - Visual Studio 2005
    Windows XP Pro

  2. #17
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    double up all of the backslashes. You can thank Bill's rage against compatibility for that.

  3. #18
    Registered User Cpro's Avatar
    Join Date
    Oct 2006
    Posts
    149
    Like this:?
    Code:
    sftp> lcd "C:\\Documents and Settings\\User\\Desktop"
    Couldn't change local directory to "C:\\Documents and Settings\\User\\Desktop": No such file or directory
    sftp> lcd C:\\
    Couldn't change local directory to "C:\\\\": No such file or directory
    IDE - Visual Studio 2005
    Windows XP Pro

  4. #19
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    Given the heritage of the tool, I'd be tempted to try / as the directory separator.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #20
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by Cpro View Post
    Like this:?
    Code:
    sftp> lcd "C:\\Documents and Settings\\User\\Desktop"
    Couldn't change local directory to "C:\\Documents and Settings\\User\\Desktop": No such file or directory
    sftp> lcd C:\\
    Couldn't change local directory to "C:\\\\": No such file or directory
    Somedays it seems you just can't win. It will take longer, but: you could always go one directory level at a time. For instance, if you need to go up two levels, you could try two commands of "lcd .." and then go down one directory at a time, with "lcd Desktop" or whatever. Painful, but it might work better.

  6. #21
    Registered User jian2587's Avatar
    Join Date
    Feb 2008
    Location
    NY
    Posts
    11
    lcd "C:\\Documents\ and\ Settings\\User\\Desktop"

    or

    lcd "C:\\Docume~1\\User\\Desktop"

    or

    lcd "C:/Docume~1/User/Desktop"

    I recommend you try the last one.

  7. #22
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,652
    Quote Originally Posted by Cpro View Post
    Are there any similar programs to this (where you can just drag and drop your files) available for free?
    Try WinSCP.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  2. C Program to calculate the FILE Size Sytem in Unix
    By anwar_pat in forum C Programming
    Replies: 6
    Last Post: 02-23-2006, 10:17 AM
  3. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 08:51 AM
  4. Replies: 2
    Last Post: 05-10-2002, 05:16 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21