403Webshell
Server IP : 216.92.14.13  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : rmlac2fmr ( 1040637)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/bin/dq-deque
#!/usr/local/bin/perl -w
=head1 NAME

dq-deque - run a command on one task from an IPC::DirQueue queue

=head1 SYNOPSIS

B<dq-deque> --dir I<qdirectory> I<command arg arg ...>

=head1 DESCRIPTION

B<dq-deque> will remove one task from an C<IPC::DirQueue> directory,
run the named command, and then exit.

The command is run as:

    command arg arg ... nameofdatafile

=head1 SEE ALSO

IPC::DirQueue(3)
dq-deque(1)
dq-list(1)
dq-server(1)
dq-submit(1)

=cut

use strict;
use lib 'lib';
use IPC::DirQueue;
use Getopt::Long;

sub usage {
  die "usage: dq-deque --dir qdirectory command arg arg...\n";
}

our $dir;

GetOptions(
  'dir=s'   => \$dir
) or usage();
$dir or usage();

my $dq = IPC::DirQueue->new({ dir => $dir });

my $job = $dq->pickup_queued_job();
if (!$job) {
  print "no jobs left\n";
  exit;
}

system (@ARGV, $job->get_data_path());

$job->finish();
print "finished\n";


Youez - 2016 - github.com/yon3zu
LinuXploit