Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 04-22-2003, 07:33 PM   #1
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default Script's !comands help

Quote:
#include <stdlib.h>
#include <stdio.h>

int _tmain(int argc, _TCHAR* argv[])
{
// Read environement variables
char *var = getenv("pwd");

// Those doesn't apply to itcl scripting btw... don't even try.

// !vfs:chattr <mode> "<path>" "<value>"
// mode 0 = create/change private dir permission; <value> is the vfs to which the symlink will point
// mode 1 = create symlink; <value> can be "-<user>", "=<group>", "<flag>" or any mix of those (space-separeted)
printf("!vfs:chattr 1 \"d:\\desktop\\ioFTPD\\test\" \"/ioFTPD/users\"\n");
printf("!vfs:chattr 1 \"d:\\desktop\\ioFTPD\\test\" \"\"\n"); // Link to root dir on site...
printf("!vfs:chattr 0 \"d:\\desktop\\ioFTPD\\test\" \"-ioFTPD\"\n");
printf("!vfs:chattr 0 \"d:\\desktop\\ioFTPD\\test\" \"=ioftpd\"\n");
printf("!vfs:chattr 0 \"d:\\desktop\\ioFTPD\\test\" \"M\"\n");

// Change userfile
// !change <user/group> <change cmd> <arg1> ... <argn>
// Same change cmds are available on SITE CHANGE ...
printf("!change darkone VFSFILE ..\\etc\\admin.vfs\n");
printf("!change darkone FLAGS +T\n");

// Change file or dir owner id or permissions (mode)
// !vfs:add <mode> <owner uid:owner gid> <file/path>
printf("!vfs:add 777 101:101 D:\\desktop\\ioFTPD\\test\n");

// Write in ioFTPD.log; date/time are automatically prefixed
// !putlog <text>
printf("!putlog 1, 2, 1, 2 test!\n");

/*
Not working cmds:
!buffer: disable/enable buffering; output goes directly to socket when disabled
!flush: flush buffer
!prefix: enable/disable output prefix
!newlines: removes \n char
!lock: lock a resource
!unlock: unlock a resource
*/

/*
Weird cmds (ie working, but no idea how to use!):
!detach <number>: set return of a script
!cwd <dir>: change active directory
*/
}
Mouton is offline  
Closed Thread

Tags
change, ddesktopioftpdtest, dir, mode, printfvfschattr

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet kick bug fobban Bug Reports 1 01-29-2003 02:34 PM
Problems with http ratnic Bug Reports 4 01-20-2003 10:07 PM


All times are GMT -5. The time now is 12:17 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)