in reply to Out of memory - FRONTIER DAEMON

mmmh... this command line for example seems malformed

system("screen -A -m -d -S c".$loginftp." cp -r".$katalogins." /home/srv".$loginftp."/");

That's better probably:

system("screen -A -m -d -S c".$loginftp."; cp -r".$katalogins." /home/srv".$loginftp."/");

And even better probably will be to use the equivalent perl commands to remove, delete user, add user, kill, copy, grep, tail, cd... so you could use warnings and check the errors

what's the purpose of things like this?

system("useradd -d /home/srv".$loginftp."/ ".$loginftp.""); $pw = new Unix::PasswdFile "/etc/passwd";

Replies are listed 'Best First'.
Re^2: Out of memory - FRONTIER DAEMON
by Anonymous Monk on Nov 04, 2011 at 14:43 UTC
    adding user ftp and changing the password.
      .""); <---?

      Probably not needed


      We can't reproduce your problem...

      cpan install Cfg::Config; Warning: Cannot install Cfg::Config, don't know what it is.

      And three, this line seems also malformed. (what is the command "stuff"?)

      system("screen -S srv".$loginftp." -X stuff '".$komenda." '");