Help with command arguments

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
dadib
550 Permission denied
Posts: 25
Joined: 2007-10-03 10:49

Help with command arguments

#1 Post by dadib » 2007-10-23 14:33

Hey boy's

I'm trying to do this kind of application: from time to time I need to add new users to the server, delete users, add port for the server to listen.
I have add the info about the new user :

Code: Select all

<User Name="..... </User>
in the xml config file, but the server don't recognize this new user. I must stop and restart the server to resolve that.

I tried the command argument FileZilla server.exe -reload-config but it dosn't work. How is this argument "-reload-config" works?

Merci all for any response.

Daniel

User avatar
botg
Site Admin
Posts: 35562
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#2 Post by botg » 2007-10-23 15:45

Try /reload-config

dadib
550 Permission denied
Posts: 25
Joined: 2007-10-03 10:49

#3 Post by dadib » 2007-10-23 19:36

is this a command argument "/reload-config", becose i have read about "-reload-config"?

any way I will give a try.
merci
Daniel

dadib
550 Permission denied
Posts: 25
Joined: 2007-10-03 10:49

#4 Post by dadib » 2007-10-23 19:51

boff :x,

did'n work with "/reload-config" argument
any other possibility ?

Why this argument exist if the server don't responde to it. I'm sad and mad. The only posibility for me is to "-stop" and then "-start" the server.

Daniel

cooperspc
226 Transfer OK
Posts: 94
Joined: 2005-10-21 15:21
Location: Indiana USA

#5 Post by cooperspc » 2007-10-23 22:39

well the

Code: Select all

filezillaserver.exe /reload-config
does work,for me
and i use it with php

Code: Select all

passthru('c:\FileZillaFTP\filezillaserver.exe /reload-config');
but you must have php safe mode off or setup the exe directory in php

dadib
550 Permission denied
Posts: 25
Joined: 2007-10-03 10:49

#6 Post by dadib » 2007-10-24 08:35

I'm using C# and I run the server like this

Code: Select all

ProcessStartInfo startInfo = new ProcessStartInfo("FileZilla server.exe","-compat -start"); 
Process.Start(startInfo);
and this is how I reload config

Code: Select all

ProcessStartInfo startInfo = new ProcessStartInfo("FileZilla server.exe","-reload-config");
Process.Start(startInfo);
For me it don't works.
Any suggestions?

Daniel

dadib
550 Permission denied
Posts: 25
Joined: 2007-10-03 10:49

#7 Post by dadib » 2007-10-24 09:07

I think I did't explain myself very good.

Add new user, delete user I think is working with -reload-config, but add new port number for listening is not working.

-reload-config is reloading entire xml config file, or only the users, and other stufs ?

Daniel

User avatar
botg
Site Admin
Posts: 35562
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#8 Post by botg » 2007-10-24 09:49

It *should* reload everything. Looks like a bug. Anyhow, it's highly unusual to change the port programmatical.

Post Reply