Author Topic: syntax for MC.Explorer.Goto PATH=ftp:mysite.com ?  (Read 407 times)

Jean

  • Contributor
  • Active Member
  • *****
  • Posts: 83
    • View Profile
syntax for MC.Explorer.Goto PATH=ftp:mysite.com ?
« on: August 03, 2022, 21:07:10 »
I've been having some trouble with ftp lately, the hoster made some changes and it's better now but it seems i have to revise some scripts because they don't work as expected anymore.

what exactly is the syntax for MC.Explorer.Goto PATH=ftp:mysite.com please? It doesn't work as expected.

Strange things happening, and after 'Server request denied' i don't see a panel, but it does NOOP so it's still connected.

2022-08-03 21:27:47 = Connection to site: jcremers.com on port 21
2022-08-03 21:27:47 < 220 ProFTPD Server ready.
2022-08-03 21:27:47 > USER [xxxxx]
2022-08-03 21:27:47 < 331 Password required for [xxxxx]
2022-08-03 21:27:47 > PASS (hidden)
2022-08-03 21:27:47 < 230 User [xxxxx] logged in
2022-08-03 21:27:47 > SYST
2022-08-03 21:27:47 < 215 UNIX Type: L8
2022-08-03 21:27:47 > FEAT
2022-08-03 21:27:47 < 211-Features:
2022-08-03 21:27:47 <  AUTH TLS
2022-08-03 21:27:47 <  CCC
2022-08-03 21:27:47 <  CLNT
2022-08-03 21:27:47 <  EPRT
2022-08-03 21:27:47 <  EPSV
2022-08-03 21:27:47 <  HOST
2022-08-03 21:27:47 <  LANG ja-JP;zh-CN;bg-BG;en-US;ru-RU;it-IT;es-ES;ko-KR;fr-FR;zh-TW
2022-08-03 21:27:47 <  MDTM
2022-08-03 21:27:47 <  MFF modify;UNIX.group;UNIX.mode;
2022-08-03 21:27:47 <  MFMT
2022-08-03 21:27:47 <  MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
2022-08-03 21:27:47 <  PBSZ
2022-08-03 21:27:47 <  PROT
2022-08-03 21:27:47 <  RANG STREAM
2022-08-03 21:27:47 <  REST STREAM
2022-08-03 21:27:47 <  SIZE
2022-08-03 21:27:47 <  SSCN
2022-08-03 21:27:47 <  TVFS
2022-08-03 21:27:47 <  UTF8
2022-08-03 21:27:47 < 211 End
2022-08-03 21:27:47 > CLNT MultiCommander
2022-08-03 21:27:47 < 200 OK
2022-08-03 21:27:47 > OPTS UTF8 ON
2022-08-03 21:27:47 < 200 UTF8 set to on
2022-08-03 21:27:47 > TYPE A
2022-08-03 21:27:47 < 200 Type set to A
2022-08-03 21:27:47 > MODE S
2022-08-03 21:27:47 < 200 Mode set to S
2022-08-03 21:27:47 > STRU F
2022-08-03 21:27:47 < 200 Structure set to F
2022-08-03 21:27:47 > CWD /domains/jcremers.com
2022-08-03 21:27:47 < 550 /domains/jcremers.com: No such file or directory
2022-08-03 21:27:47 = Server request denied
2022-08-03 21:27:47 > CWD /domains/jcremers.com/public_html
2022-08-03 21:27:47 < 550 /domains/jcremers.com/public_html: No such file or directory
2022-08-03 21:27:47 = Server request denied


« Last Edit: August 03, 2022, 21:34:34 by Jean »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4032
    • View Profile
    • Multi Commander
Re: syntax for MC.Explorer.Goto PATH=ftp:mysite.com ?
« Reply #1 on: August 03, 2022, 23:42:14 »
2022-08-03 21:27:47 > CWD /domains/jcremers.com
2022-08-03 21:27:47 < 550 /domains/jcremers.com: No such file or directory
2022-08-03 21:27:47 = Server request denied
2022-08-03 21:27:47 > CWD /domains/jcremers.com/public_html
2022-08-03 21:27:47 < 550 /domains/jcremers.com/public_html: No such file or directory
2022-08-03 21:27:47 = Server request denied


You are trying to change folder to "/domains/jcremers.com" and the server reply that there is no such file or folder
and than the same with "/domains/jcremers.com/public_html"

Beware that some FTP server is case sensitive.

lines with > is Commands MC is sending to the server.
lines with < is the response from the server

Jean

  • Contributor
  • Active Member
  • *****
  • Posts: 83
    • View Profile
Re: syntax for MC.Explorer.Goto PATH=ftp:mysite.com ?
« Reply #2 on: August 04, 2022, 11:58:20 »
Thanks Matthias.
But this is not ftp script, its just

Code: [Select]
MC.SetActivePanel PANEL=TOGGLE
MC.Explorer.NewBrowser
MC.Explorer.Goto PATH=FTP:\jcremers.com

So i don't send any path myself, mc makes those CWD itself, and they are incorrect, they should start at /home/username/domains/jcremers.com/public_html/
« Last Edit: August 04, 2022, 12:03:56 by Jean »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4032
    • View Profile
    • Multi Commander
Re: syntax for MC.Explorer.Goto PATH=ftp:mysite.com ?
« Reply #3 on: August 04, 2022, 12:15:04 »
Thanks Matthias.
But this is not ftp script, its just

Code: [Select]
MC.SetActivePanel PANEL=TOGGLE
MC.Explorer.NewBrowser
MC.Explorer.Goto PATH=FTP:\jcremers.com

So i don't send any path myself, mc makes those CWD itself, and they are incorrect, they should start at /home/username/domains/jcremers.com/public_html/

That is the default remote path then. It is configured in the bookmark for the ftp site

Jean

  • Contributor
  • Active Member
  • *****
  • Posts: 83
    • View Profile
Re: syntax for MC.Explorer.Goto PATH=ftp:mysite.com ?
« Reply #4 on: August 04, 2022, 13:18:54 »
I had two different entries in the bookmarks, i removed the duplicate, now it works fine.
Thanks again. Greatest filemanager there is.