07-01-2010
I don't know the answer, but it is interesting, your results are some regular numbers, all of them are square numbers.
When I run your code in my system, I don't get any output. Try to understand your idea first.
9 More Discussions You Might Find Interesting
1. SuSE
I have been trying to disable the firewall on a new install of RH8(Psyche). It will NOT stay disabled. I've gone thru system tools, security level and disabled it, and it says YES, like it will save my settings, but when i open it up again, it is always back to HIGH. I also tried using the... (3 Replies)
Discussion started by: kymberm
3 Replies
2. UNIX for Dummies Questions & Answers
I am using digital Unix and lpd. I have HP 4200n LaserJet TCP printer, but when I use lpr command, it always print duplex.
I can turn off duplex feature at the panel of the printer, but then other Windows computer cannot print duplex. How can I set up /etc/printcap file so that it will be... (2 Replies)
Discussion started by: hiepng
2 Replies
3. SuSE
Ok, so we get reports from operations after they do walk throughs about servers with amber or red lights showing. They want us to resolve the issues. On Solaris I can run prtdiag to identify the amber lights and clear them (replace hardware or "reboot" the daemon).
How do I remotely figure out... (1 Reply)
Discussion started by: BOFH
1 Replies
4. UNIX for Dummies Questions & Answers
how to disable anoying beep sound??? (4 Replies)
Discussion started by: nnn
4 Replies
5. Shell Programming and Scripting
#!/bin/sh
cd /u02/app/ccalloc/dev/in
CURDIR=`pwd`
echo directory listing of $CURDIR
echo
ls -latr
i have a basic shell script that displays a specific files on a directory. when the script is run and it does not find the file in the directory it display a first line message of
how... (3 Replies)
Discussion started by: wtolentino
3 Replies
6. Red Hat
After searching the forum, I found that Bash spawns a subshell when using the pipe. I am wondering if there is an option or any other way to turn off this fuctionality.
We are pulling over some scripts from a Korn shell environment. I have found ways to work around looping from a pipe (Thanks... (4 Replies)
Discussion started by: jryan
4 Replies
7. Programming
Hi all,
In my program, I am trying to use ioctl to turn on/off the wireless card, using SIOCSIFFLAGS (I am new to it but somebody said it is the most traditional way). However, it seems that I didn't set the flag correctly since the wireless is always on (I have root permission). If any one... (2 Replies)
Discussion started by: tetelee
2 Replies
8. Shell Programming and Scripting
Hi All
i am cat'ing a file and then using cut to get rid of some info, is there a way to turn the list into one line
i.e
1
2
3
4
5
into
1 2 3 4 5 (4 Replies)
Discussion started by: ab52
4 Replies
9. UNIX for Beginners Questions & Answers
I'm running a Linux OS that uses Debian as it's base. A commercial vpn is installed that uses OpenVPN. For some reason, I can't get ipv6 to tunnel properly .... and Ipleak.net shows that my location is being unmasked by ipv6.
I've tried kernel commands at boot, I've tried sysctl.conf commands.... (2 Replies)
Discussion started by: benc
2 Replies
LEARN ABOUT DEBIAN
gearmand
GEARMAND(1p) User Contributed Perl Documentation GEARMAND(1p)
NAME
gearmand - Gearman client/worker connector.
SYNOPSIS
gearmand --daemon
DESCRIPTION
This is the main executable for Gearman::Server. It provides command-line configuration of port numbers, pidfiles, and daemonization.
OPTIONS
--daemonize / -d
Make the daemon run in the background (good for init.d scripts, bad for running under daemontools/supervise).
--port=7003 / -p 7003
Set the port number, defaults to 7003.
--pidfile=/some/dir/gearmand.pid
Write a pidfile when starting up
--debug=1
Enable debugging (currently the only debug output is when a client or worker connects).
--accept=10
Number of new connections to accept each time we see a listening socket ready. This doesn't usually need to be tuned by anyone, however
in dire circumstances you may need to do it quickly.
--wakeup=3
Number of workers to wake up per job inserted into the queue.
Zero(0) is a perfectly acceptable answer, and can be used if you don't care much about job latency. This would bank on the base idea
of a worker checking in with the server every so often.
Negative One (-1) indicates that all sleeping workers should be woken up.
All other negative numbers will cause the server to throw exception and not start.
--wakeup-delay=
Time interval before waking up more workers (the value specified by --wakeup) when jobs are still in the queue.
Zero(0) means go as fast as possible, but not all at the same time. Similar to -1 on --wakeup, but is more cooperative in gearmand's
multitasking model.
Negative One (-1) means that this event won't happe, so only the initial workers will be woken up to handle jobs in the queue.
COPYRIGHT
Copyright 2005-2007, Danga Interactive
You are granted a license to use it under the same terms as Perl itself.
WARRANTY
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
AUTHORS
Brad Fitzpatrick <brad@danga.com>
Brad Whitaker <whitaker@danga.com>
SEE ALSO
Gearman::Server
Gearman::Client
Gearman::Worker
Gearman::Client::Async
perl v5.10.1 2009-10-05 GEARMAND(1p)