Jump to content

tirengarfio

New Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by tirengarfio

  1. I want to execute the exec("scp..") commands without waiting for the scp's to finish, what is called usually asynchronously.
  2. Those parts should put the scp command in the background so the exec()'s are executed before the scp's finish.
  3. Hi, I'm trying to copy asyncronously 10 70 MB video files. exec("scp -o StrictHostKeyChecking=accept-new -i /var/keys/devDevices_rsa MarTianez1.mp4 [email protected]:/tmp/test1 2>&1 > out.log", $output, $exitCode); ... exec("scp -o StrictHostKeyChecking=accept-new -i /var/keys/devDevices_rsa MarTianez10.mp4 [email protected]:/tmp/test10 2>&1 > out.log", $output, $exitCode); But I cannot see any difference if I remove `2>&1 > out.log`'s from the scp commads. PHP 8.1, Apache2, Ubuntu 22
  4. Thanks, but could you give me a bit more details, please? How can I check if I have OpenSSL's default CA bundle implmented properly? Im on Ubuntu 20.
  5. HI, I'm running the next script from my local host and the production server, and Im getting different outputs. Anyone knows why am I getting that error from my localhost? <?php $host = 'ssl://mail.companyname.org'; $port = 993; $error = 0; $errorString = ""; var_dump(fsockopen($host, $port, $error, $errorString, 30)); var_dump($errorString); var_dump($error); Local host output: > PHP Warning: fsockopen(): SSL operation failed with code 1. OpenSSL > Error messages: error:1416F086:SSL > routines:tls_process_server_certificate:certificate verify failed in > /tmp/test.php on line 7 PHP Warning: fsockopen(): Failed to enable > crypto in /tmp/test.php on line 7 PHP Warning: fsockopen(): unable to > connect to ssl://mail.twmdata.org:993 (Unknown error) in /tmp/test.php > on line 7 bool(false) string(0) "" int(0) Production server output: resource(4) of type (stream)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.