1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IFTP "/S" Option

Discussion in 'Support' started by cgunhouse, Dec 11, 2014.

  1. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    I have not been able to determine how the "/S" switch works for IFTP.

    I successfully open a connection using IFTP and then start send commands using the "/S". The Help for the command says the following:

    /S Allows you to send commands directly to an FTP server. The connection must have already been opened by a previous IFTP command.

    So I tried:

    iftp /S ls

    This yielded:

    TCC: [11001] Host not found "ls"
    And I tried:

    iftp /S verbose on

    This yielded:

    TCC: [11004] Valid name, no data record (check DNS setup) "verbose on"
    After using both these commands the connection is disconnected as well.

    So how does the "/S" option work?
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,812
    Likes Received:
    82
    The best rule of thumb is that if you don't know why you would /S, then you definitely should not be using /S!

    /S is intended for sending configuration options to the FTP server, not for executing commands on the remote system. Exactly what options are valid depends on what FTP server software you're running.
     
  3. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    If I connect using IFTP

    Then I do:

    cd ftp:\Test

    This will change the directory to Test on the ftp connection. This works
    but isn't this the same as:

    IFTP /S cd /Test

    or

    IFTP /S cd Test


    This doesn't work.​
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,812
    Likes Received:
    82
    No, it is definitely not the same. In the first example, you're changing the default directory for your session on the FTP server. In the second example, you're telling your FTP server to set its internal configuration option "cd /Test".

    I don't know of any FTP server that will take a "cd" as an internal configuration option.

    If you tell me exactly what you want to do with /S (i.e., that you can't do with something like "cd ftp:\Test"), and exactly what FTP software is running on your server, I can provide a better answer.
     
  5. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    ftp> help
    Commands may be abbreviated. Commands are:

    ! delete literal prompt send
    ? debug ls put status
    append dir mdelete pwd trace
    ascii disconnect mdir quit type
    bell get mget quote user
    binary glob mkdir recv verbose
    bye hash mls remotehelp
    cd help mput rename
    close lcd open rmdir


    When it came to commands this is what I thought was available. I would probably use "trace", "verbose", "debug", etc. Anything to help with connection issues.
     
  6. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,812
    Likes Received:
    82
    Those look like ftp client commands, not ftp server commands. Were you running that on the server? (I.e., through putty or ssh.)

    IFTP has a /V (verbose) option, which is useful for debugging purposes.
     
  7. cgunhouse

    Joined:
    Dec 2, 2008
    Messages:
    209
    Likes Received:
    2
    I think I understand, was thinking client commands and not server commands.
     

Share This Page