print PLEXE "system(\"/home/****/Share/ghostck.pl &\");\n"; close(PLEXE); $sftp->put($PLEXE, $REMPLEXE); $ssh->cmd("chmod 755 $REMOTERTR"); $ssh->cmd("chmod 755 $REMPLEXE"); $ssh->cmd("perl $REMPLEXE");