stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Keep track of stopped processes via shell variables







Keep track of stopped processes via
shell variables

Keep track of stopped processes via
shell variables
12/15/2003 11:45 AM

Earlier hints discuss how to suspend and resume processes via kill -- very helpful to me, because I had been launching apps from Terminal and using ^Z, fg and bg to manage them. A summary of previous hints: kill -STOP and kil...




This is a GrokNews Entry: (what is grok?)





Similar Items

Keep track of stopped processes via shell variables

Grok Headline matches for Keep track of stopped processes via shell variables

Manage With the Windows Shell: Write
Shell Extensions with C#


Manage With the Windows Shell: Write
Shell Extensions with C#
06/30/2004 05:43 PM
In this article, Dino Esposito demonstrates how to create a Windows shell extension using C# code and the .NET Framework. He discusses the COM Interop layer and using a practical example, shows you techniques and tricks you need to know to build managed shell extensions.

Pentagon Can't Even Keep Track Of The
Systems That Keep Track Of Stuff


Pentagon Can't Even Keep Track Of The
Systems That Keep Track Of Stuff
07/08/2004 12:33 PM
The Pentagon certainly isn't known for efficiency in their business processes, and no one ever said they needed to be run in the same manner as a profitable business, but the fact that they can't even track the thousands of different databases and logistics systems that are supposed to keep track of all of their purchases and assets is a bit worrisome. At the very least it's a huge recipe for fraud, with plenty of already greedy enough defense contractors clearly abusing the system for great profit to themselves -- at the expense of our own tax dollars.

If this is the right track, don't show
us the wrong track


If this is the right track, don't show
us the wrong track
09/23/2004 08:02 PM
One of the more fascinating moments of today's White House press conference with Bush and Allawi came when the president, who claims to pay scant attention to public opinion polling (that's something Clintons do), referred to "right track/wrong track" polling in Iraq like he was George Gallup himself:

Object-Variables-0.5


Object-Variables-0.5 07/27/2004 12:28 AM

Tunneling Variables


Tunneling Variables 04/09/2004 04:09 PM
In Bob DuCharme's latest Transforming XML column he explains the use and virtues of XSLT 2.0's tunneled variables.

Application Variables with PHP


Application Variables with PHP 08/05/2002 10:44 PM
One of the most common feature requests that PHP developers ask for is application variables. These are variables that are globally available to all PHP scripts on a web server. There are currently several implementations.

An Introduction to Variables


An Introduction to Variables 11/27/2002 09:47 PM

This is only for those who are new to php, or maybe programming altogether. This won't 'enlighten' you, or make you 'one with everything', but it should make you one with variables.


Predefined Variables


Predefined Variables 06/09/2004 03:40 PM

PHP Application Variables


PHP Application Variables 07/02/2002 09:57 AM

Application Variables in PHP


Application Variables in PHP 07/01/2002 08:29 AM
This is the first article of several on developing an architecture for Enterprise PHP, where we are running dedicated PHP servers tuned to serve large number of web pages. This work originated in the need to save the current working database connection as an Application variable in a primary and fallback database server configuration. This can be extended to saving other configuration information that rarely changes... -- John Lim

"zeldman.jayne"

Variables and Paths


Variables and Paths 06/26/2002 07:05 PM
In this month's Q&A column, John Simpson answers questions about XSLT variables and XML document paths.

Variable Variables in PHP


Variable Variables in PHP 12/19/2002 10:43 PM
Variable Variables in PHP Well since it's late but I'm still grinding and I feel guilty for not blogging much today, here's a special PHP Treat: A Variable Variable Tutorial. Yes that's right. There is a feature in PHP called "Variable Variables". One of the issues that I had with implementing our Digibuy support was our old friend and enemy: Parsing. This is such a fundamental thing but there always seems to be a new wrinkle in it. In this case we had an existing PHP script which did our registration calculations and was expecting a certain set of variables. Now this code was fairly complex and I didn't want to re-write it (much). Here's the input data we had to parse: author_id=BillBrown & author_password=HemosRules & prod_sku=98079949999 With the exception that it had like 30 odd variables in it. Since my code was expecting a series of variables I needed to parse this and automatically create a series of variables like $author_id and $author_password. Now if this data was being given to me by a URL then it would be easy -- PHP could automatically do it or I could just pull them out of $_REQUEST. But, instead, I had them going to me as if they were a file. So ... How do you create a series of variables on the fly? Note: Yes I could have made an associative array but that wouldn't have taught me anything, now would it ? I could also have gotten a similar effect with the extract function but I found out about that after this working. And if the code is working then ... Well deep in the recesses of what I call a brain was a recollection of "variable variables". I think I heard about this in a talk that Rasmus gave although I can't honestly be sure. I do know that whenever you need to do "meta" type tasks like this in a language, you need to poke around the oddball features since that's usually where they reside. What I do is look for the sections of the documentation that I've never read. The idea behind a variable variable is simple: interpret the value of a variable and make it into a variable itself. I.e. the "variable variable" nomenclature. Since php uses $ for indicating a variable they've chosen to use $$ to make a variable variable. Let's say you have two variables, $part1 and $part2. If $part1 = "author_id" and $part2="HemosRules" how do I get to $author_id = "HemosRules". Simple: $$part1 = $part2. Yup. It's just that easy. Of course I did need to wrap it into a string parsing loop. Here's the guts of it: $strarray = explode("&",$input); foreach ($strarray as $stritem) { $stritem = trim($stritem); $part1 = substr ( $stritem, 0, strpos ( $stritem,"=" ) ); $part2 = substr ( $stritem, strpos ( $stritem,"=" )+1, strlen ( $stritem ) ); #magic! $$ is a "variable variable" i.e. it converts the value #in the variable into a variable itself $$part1 = $part2; } The way this works is an input string, $input, contains everything that needs to be processed. First I explode this into an array using "&" as the delimiter. Then I loop over the array with a foreach loop creating a $part1 variable and a $part2 variable. Finally I just do the magic $$part1 = $part2. Here's the example Source Code. Here's the working Example Thanks again to my favorite Systems Administrator, Apokalyptik, for showing me how to use PHP to generate code listings. Much easier than pasting it into a blog entry. More on Variable Variables from PHP.Net: [_Go_] Variable Variables. A little confusing but definitely a frothy good thing!

Object-Variables-0.4


Object-Variables-0.4 07/25/2004 06:12 AM

Object-Variables-0.9


Object-Variables-0.9 07/30/2004 12:14 AM

Internal Variables for Use in Your
Scripts


Internal Variables for Use in Your
Scripts
08/15/2004 07:36 PM

Variables used by the Status Filter


Variables used by the Status Filter 04/15/2004 02:26 PM

Perl's Special Variables


Perl's Special Variables 06/18/2004 07:05 PM
Dave Cross goes back to basics to show how using Perl's special variables can tidy up file-handling code.

Using hash variables in Perl


Using hash variables in Perl 05/03/2004 09:19 AM
CNET May 3 2004 1:48PM GMT

Hash variables in Perl


Hash variables in Perl 08/23/2004 02:48 AM
CNET Aug 23 2004 7:15AM GMT

PHP Static Class Variables


PHP Static Class Variables 12/02/2002 01:17 PM
Static class variables are variables that are shared among all instances of a particular class. Although PHP supports static variables in functions, it has no support for static variables in classes. This functionality can be pretty important in some situations, and I will now describe a way to simulate it.

A Guide to Basic Variables That Add To
Site Value


A Guide to Basic Variables That Add To
Site Value
03/17/2005 02:32 AM
Nice checklist of items to cover before buying or selling a site.

Learning Cocoa: Repurposing Variables


Learning Cocoa: Repurposing Variables 01/18/2004 02:48 PM
Set Roby: "By now we know that every variable is really just a bunch of bits, which we can look at a certain way and read as an integer, a pointer, or whatever else we need to remember. Well, what else do we want to remember?"

Templates with patTemplate, and Form
Variables


Templates with patTemplate, and Form
Variables
05/30/2002 08:10 AM

The Fuzzy Blog on Varaible Variables


The Fuzzy Blog on Varaible Variables 12/20/2002 08:49 AM

Using variables in Windows batch files


Using variables in Windows batch files 08/29/2004 02:23 PM
Tech-Recipes Aug 29 2004 6:35PM GMT

FAQ | PC processes can be a burden


FAQ | PC processes can be a burden 03/27/2005 05:50 AM
Philadelphia Inquirer Mar 27 2005 8:44AM GMT

Re: Unprivilegued settings for FreeBSD
kernel variables


Re: Unprivilegued settings for FreeBSD
kernel variables
06/16/2004 06:16 PM
Dag-Erling Smørgrav (Jun 15 2004)

Working with Environment variables -
Add, Remove and Retrieve


Working with Environment variables -
Add, Remove and Retrieve
12/24/2004 12:49 PM

Setting the %DSDIT%, %DSLOG%, and
%SYSVOL% Variables


Setting the %DSDIT%, %DSLOG%, and
%SYSVOL% Variables
09/10/2004 01:53 AM

Copy variables from command line to GUI
environments


Copy variables from command line to GUI
environments
07/22/2004 09:59 AM
If you use the UNIX command line environment under OS X, you probably know that the environment symbols you set up in your .bashrc file are not reflected in the GUI environment. In the GUI environment, symbol values are read...

Unprivilegued settings for FreeBSD
kernel variables


Unprivilegued settings for FreeBSD
kernel variables
06/15/2004 01:41 PM
Radko Keves (Jun 14 2004)

Eliminating Unneeded Processes From Your
PC


Eliminating Unneeded Processes From Your
PC
02/06/2005 01:11 AM
Washington Post Feb 6 2005 3:56AM GMT

ITIL processes ranked


ITIL processes ranked 03/31/2005 05:09 AM
Implementing best practices is all about customer satisfaction - at least, according to a recent Forrester Research survey of a score of billion-dollar companies that have adopted IT Infrastructure Library processes.

Business processes key to web services


Business processes key to web services 05/18/2004 06:02 AM
Personal Computer World May 18 2004 10:19AM GMT

PSP Stopped Charging


PSP Stopped Charging 04/03/2005 05:57 PM
My PSP has stopped charging the battery or otherwise acknowledging that it's plugged in. There's no LED on the charger...

When I stopped smoking


When I stopped smoking 06/14/2004 08:37 AM

On the Sunday before my surgery, I said to Tori -- "You know I haven't decided to stop smoking yet."

Then after the surgery, not sure which day it was (probably Tuesday morning) in the ICU, the surgeon comes to see me, really sharply dressed, with a sharply dressed woman with him (not sure who she was).

The doctor says "You're a computer guy, right?" I said I was. "What's the word you guys use for seeing something?" I asked if he meant visualize. "That's it!" he exclaimed.

"Now I want you to visualize yourself as a smoker." Since I had been trained in meditation, I thought I was about to be deprogrammed. Okay, I'm visualizing.

"You're dead!" he said and started laughing.

What do you mean? I asked. "People like you who keep smoking are usually dead within three years," he explained. Gulp. Somehow, in all the doom and gloom it had never really sunk in that I had almost died. If I had waited another couple of weeks to deal with this, well, I don't even like to think about it.

Anyway, that was the moment. That was when I decided to stop smoking.


but they stopped short


but they stopped short 03/27/2005 05:01 AM
"possible showdown" .. Miami Herald

miami.com/mld/miamiherald/11233240.htm
track this site | 3 links


Can GameStop Be Stopped?


Can GameStop Be Stopped? 08/17/2004 03:18 PM
GameStop's lack of a competitive advantage leaves investors with many questions.

Can Wal-Mart Be Stopped?


Can Wal-Mart Be Stopped? 01/27/2004 10:17 AM
Wal-Mart hits an expansion roadblock. Will it take a detour or drive right through?
Grok Description matches for Keep track of stopped processes via shell variables
GrokA matches for Keep track of stopped processes via shell variables

Keep track of stopped processes via shell variables

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

10.3: Expand
Mail.app threads in
slow motion

Rename iTunes
playlists to control
order

Eject stuck CDs
using open firmware

10.3: Easy access to
AppleTalk shares in
Panther

macosxhints.com
announces holiday
schedule...

Chopper - A remake
of a classic Apple
][ game

ZipItFast! v3.2
Christmas Gifts for
Geeks

GoToast Acquired by
aQuantive Inc.

Brother offers new
office laser
printers

iTunes Music Store -
25 Million Songs

J2MEGL
Greyhounds
OpenExif
Open Tiff Toolkit
CAIAC - CAIAC Is
Another CMS

Massive MyTravel
losses blamed on
botched IT system
install

E-envoy get the chop
Toshiba's even
tinier hard drive

Verizon's second
cameraphone

Too Angry To Be
Elected: Harry
Truman

I'm pickled tink!
PowerPoint makes you
dumb.

Have you ever heard
'I Want a
Hippopotamus for
Christmas'?

The Search for
Motorola's CEO
Narrows

Saddam captured;
Motorola eyes
Zafirovski to
replace Galvin; Roy
Disney starts
anti-Eisner site

The Educator's
Reference Desk

3G (U)SAT Test Kit
3, Sun and Cisco
Develop 3G
Applications

More 3G Phones For
Hutchison

Creative Commons
Flash online

Hack your Xbox, get
illegally converged

JWZ on RFID credit
cards

Toshiba's new tiny
hard drives

Virtual hooking,
real censorship in
The Sims Online

God to smite "Bible
pirates"

SMS keyboard for PCs
E-government fails
to catch on

Britain to appoint
head of e-government

Access for all
Dedicated Head of
e-Government to
steer Blair's
'e-agenda'

In India, a
high-tech outpost
for U.S. patents

iTMS Tops 25 Million
Downloads

WWDC Plans Announced
Googleplex Gets
Japanese Digital
Toilets

O2 Ireland Turns on
3G

CNN.com - Saddam
'caught like a rat'
in a hole - Dec. 14,
2003

Mining the intranet
The whiplash effect
Web services
security check

Obstacle course
what is grok?