02-11-2013
Workin' too hard, length is optional.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Discussion started by: Cheraunm
8 Replies
2. Shell Programming and Scripting
Hi,
I have a custom HTML form that has a couple radio buttons and a text field that requires a number.
I'm not a php programmer and could use some help with putting together php code to calculate a total based on the radio button selection and the text field number.
... (3 Replies)
Discussion started by: nck
3 Replies
3. Shell Programming and Scripting
I'm trying to use wget to submit a form. I have tried to dig out what is actually being "posted" and where, using tamperdata (see below).
http://ubuntuforums.org/attachment.php?attachmentid=109123&d=1239224127
Here is my wget command:
wget --http-user=xyz --http-password=xyz... (1 Reply)
Discussion started by: mike909
1 Replies
4. Shell Programming and Scripting
I am trying to write a shell script to use curl in order to automate downloading data from a website. The URL with the post form is here: http://try-db.org/de/InfoBySpecies.php .
I have a list of about 1800 different species I want to check. For Example, choose the first species and use the... (2 Replies)
Discussion started by: hansvg
2 Replies
5. Shell Programming and Scripting
HI Guys,
I have data in File A.txt
RL03 RL03_A_1 RL03_B_1 RL03_C_1
RL03 -119.8 -119.5 -119.5
RL07 RL07_A_1 RL07_B_1 RL07_C_1
RL07 -119.3 -119.5 -119.5
RL15 RL15_A_1 RL15_C_1
RL15 -120.5 -119.4
RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies
6. UNIX for Dummies Questions & Answers
Hello,
i have page domain.com/form.php
the form fields on form.php are named:
name=ipaddress
name=port
and submit button is named: submit
i want to ask how the linux command will look like to submit the form filled with:
ipaddress: 127.0.0.1
port: 80
I tried various curl and... (5 Replies)
Discussion started by: postcd
5 Replies
7. Programming
hi all,
im going to design a web html form so users can input what username and password they want to make the ftp account, once they enter in a username and password they click on the submit button and it submits it to a bash script and then the bash script will run and finish of making the... (3 Replies)
Discussion started by: robertkwild
3 Replies
8. Shell Programming and Scripting
Hi All,
I'm new in forum.
Many congratulations to everyone for all work.
I'm not an expert in bash script
I've a problem with a sh file.
The sh file run every t minuts and it read data from txt file and then compile form.
Finally, the user, from the web browser click on send.
The script... (0 Replies)
Discussion started by: Herbert
0 Replies
9. Shell Programming and Scripting
Hi I was hoping some one could help me with a problem I have.
I am trying to collect some information from a web form and save it to a text file.
I found an example on this site that is sort of what I am trying to accomplish, the shell script bellow should echo the input back to the browser... (0 Replies)
Discussion started by: Paul Walker
0 Replies
LEARN ABOUT DEBIAN
theschwartz::worker
TheSchwartz::Worker(3pm) User Contributed Perl Documentation TheSchwartz::Worker(3pm)
NAME
TheSchwartz::Worker - superclass for defining task behavior
SYNOPSIS
package MyWorker;
use base qw( TheSchwartz::Worker );
sub work {
my $class = shift;
my TheSchwartz::Job $job = shift;
print "Workin' hard or hardly workin'? Hyuk!!
";
$job->completed();
}
package main;
my $client = TheSchwartz->new( databases => $DATABASE_INFO );
$client->can_do('MyWorker');
$client->work();
DESCRIPTION
TheSchwartz::Worker objects are the salt of the reliable job queuing earth. The behavior required to perform posted jobs are defined in
subclasses of TheSchwartz::Worker. These subclasses are named for the ability required of a "TheSchwartz" client to do the job, so that the
clients can dispatch automatically to the approprate worker routine.
Because jobs can be performed by any machine running code for capable worker classes, "TheSchwartz::Worker"s are generally stateless. All
mutable state is stored in the "TheSchwartz::Job" objects. This means all "TheSchwartz::Worker" methods are class methods, and
"TheSchwartz::Worker" classes are generally never instantiated.
SUBCLASSING
Define and customize how a job is performed by overriding these methods in your subclass:
"$class->work( $job )"
Performs the job that required ability $class. Override this method to define how to do the job you're defining.
Note that will need to call "$job->completed()" or "$job->failed()" as appropriate to indicate success or failure. See TheSchwartz::Job.
"$class->max_retries( $job )"
Returns the number of times workers should attempt the given job. After this many tries, the job is marked as completed with errors (that
is, a "TheSchwartz::ExitStatus" is recorded for it) and removed from the queue. By default, returns 0.
"$class->retry_delay( $num_failures )"
Returns the number of seconds after a failure workers should wait until reattempting a job that has already failed $num_failures times. By
default, returns 0.
"$class->keep_exit_status_for()"
Returns the number of seconds to allow a "TheSchwartz::ExitStatus" record for a job performed by this worker class to exist. By default,
returns 0.
"$class->grab_for()"
Returns the number of seconds workers of this class will claim a grabbed a job. That is, returns the length of the timeout after which
other workers will decide a worker that claimed a job has crashed or faulted without marking the job failed. Jobs that are marked as failed
by a worker are also marked for immediate retry after a delay indicated by "retry_delay()".
USAGE
"$class->grab_job( $client )"
Finds and claims a job for workers with ability $class, using "TheSchwartz" client $client. This job can then be passed to "work()" or
"work_safely()" to perform it.
"$class->work_safely( $job )"
Performs the job associated with the worker's class name. If an error is thrown while doing the job, the job is appropriately marked as
failed, unlike when calling "work()" directly.
perl v5.10.0 2008-03-02 TheSchwartz::Worker(3pm)