Need a plugin

Started by MRSK143, Mar 05, 2022, 07:09 PM

Previous topic - Next topic

habi


MRSK143

Quote from: habi on Mar 13, 2022, 02:49 PMTry
system("dir");

where to use it? i mean where to paste it in the script?
@mR_Sk@

habi

Somewhere in the script, like top of the script or onScriptLoad. It will print all files in the directory.

Also you can replace function delete_file with this if you want.
function delete_file(file)
{
 local cmd="rm "+file;
 system(cmd);
}

MRSK143

#18
Quote from: habi on Mar 13, 2022, 03:20 PMSomewhere in the script, like top of the script or onScriptLoad. It will print all files in the directory.

Also you can replace function delete_file with this if you want.
function delete_file(file)
{
 local cmd="rm "+file;
 system(cmd);
}

hey this thing is behaving weird

rm: cannot remove '1.txt': No such file or directory
rm: cannot remove 'output.txt': No such file or directory
rm: cannot remove 'query.txt': No such file or directory
GeoIP.dat                          database
announce.log                       delfile
archive-2022-03-09T134053Z.tar.gz  mpsvrrel64
archive-2022-03-09T134215Z.tar.gz  plugins
archive-2022-03-11T031426Z.tar.gz  scripts
archive-2022-03-13T134804Z.tar.gz  server.cfg
archive-2022-03-13T135017Z.tar.gz  server.conf
archive-2022-03-13T152919Z.tar.gz  server_log.txt
call_curl                          store
curl[/connect]


and this happend on checking if the mail is valid
[SCRIPT] Fetching Next UID from Gmail...
rm: cannot remove 'query.txt': No such file or directory
nohup: appending output to 'nohup.out'
[SCRIPT] UID = 14
[SCRIPT] Sending test email and waiting 15 seconds..
rm: cannot remove 'mail.txt': No such file or directory
nohup: appending output to 'nohup.out'
[SCRIPT] Checking for New mail from google
rm: cannot remove 'output.txt': No such file or directory
nohup: appending output to 'nohup.out'
nohup: failed to run command './call_curl': No such file or directory
[SCRIPT] call_curl did not finished after 20 seconds
@mR_Sk@

habi

i got P.M and you mentioned the issue was fixed somehow.

MRSK143

Quote from: habi on Mar 14, 2022, 03:15 PMi got P.M and you mentioned the issue was fixed somehow.
Hi. i hope you are doing well i have sent you a pm but i think you have noticed on it please take a look on it
@mR_Sk@