!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/main_file/vendor/laravel/framework/src/Illuminate/Console/Scheduling/   drwxr-xr-x
Free 13.06 GB of 57.97 GB (22.53%)
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.49 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 
Illuminate\Support\ProcessUtils;
use 
Symfony\Component\Console\Attribute\AsCommand;
use 
Symfony\Component\Console\Output\OutputInterface;
use 
Symfony\Component\Process\Process;

#[
AsCommand(name'schedule:work')]
class 
ScheduleWorkCommand extends Command
{
    
/**
     * The name and signature of the console command.
     *
     * @var string
     */
    
protected $signature 'schedule:work {--run-output-file= : The file to direct <info>schedule:run</info> output to}';

    
/**
     * 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->components->info(
            
'Running scheduled tasks every minute.',
            
$this->getLaravel()->isLocal() ? OutputInterface::VERBOSITY_NORMAL OutputInterface::VERBOSITY_VERBOSE
        
);

        [
$lastExecutionStartedAt$executions] = [null, []];

        
$command implode(' 'array_map(fn ($arg) => ProcessUtils::escapeArgument($arg), [
            
PHP_BINARY,
            
defined('ARTISAN_BINARY') ? ARTISAN_BINARY 'artisan',
            
'schedule:run',
        ]));

        if (
$this->option('run-output-file')) {
            
$command .= ' >> '.ProcessUtils::escapeArgument($this->option('run-output-file')).' 2>&1';
        }

        while (
true) {
            
usleep(100 1000);

            if (
Carbon::now()->second === &&
                ! 
Carbon::now()->startOfMinute()->equalTo($lastExecutionStartedAt)) {
                
$executions[] = $execution Process::fromShellCommandline($command);

                
$execution->start();

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

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

                
$this->output->write(ltrim($output"\n"));

                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.0055 ]--