Multi Commander > Script

syntax for MC.Explorer.Goto PATH=ftp:mysite.com ?

(1/1)

Jean:
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


Mathias (Author):
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:
Thanks Matthias.
But this is not ftp script, its just


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

--- End code ---

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/

Mathias (Author):

--- Quote from: Jean on August 04, 2022, 11:58:20 ---Thanks Matthias.
But this is not ftp script, its just


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

--- End code ---

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/

--- End quote ---

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

Jean:
I had two different entries in the bookmarks, i removed the duplicate, now it works fine.
Thanks again. Greatest filemanager there is.

Navigation

[0] Message Index

Go to full version