Need a plugin

habi

  • Sr. Member
  • Posts: 400

MRSK143

  • Jr. Member
  • Posts: 71

habi

  • Sr. Member
  • Posts: 400
Re: Need a plugin
« Reply #17,  »
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.
Code: [Select]
function delete_file(file)
{
 local cmd="rm "+file;
 system(cmd);
}

MRSK143

  • Jr. Member
  • Posts: 71
Re: Need a plugin
« Reply #18,  »Last edited
Quote from habi on March 13th, 03:20 PM
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.
Code: [Select]
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

habi

  • Sr. Member
  • Posts: 400
Re: Need a plugin
« Reply #19,  »
i got P.M and you mentioned the issue was fixed somehow.

MRSK143

  • Jr. Member
  • Posts: 71
Re: Need a plugin
« Reply #20,  »
Quote from habi on March 14th, 03:15 PM
i 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