- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
An Interview with the Indians
Collapse
X
-
-
??????Originally posted by scotspine View Postah, a mac person. how quaint
how was the hook-dipping this year oh?Comment
-
I thank you.Originally posted by DaveB View Postthe ECHO command is the same between Windows and UNIX. It sends it's argument to the standard output. ( The command line usually ).
The confusion here is with the way UNIX handles variables. To define a variable and send it to the standard output in unix you use
> foo=bar
> ECHO $foo
> bar
The trick with ECHO $$ is that Unix has a number of predetermined variables, set at shell and environment level that contain specific pieces of infomation.
$ is the variable name used to identify the ID of the currently running process. So 'ECHO $$' will return the current value of $. Others include :
- $1 - $9 these variables are the positional parameters.
- $0 the name of the command currently being executed.
- $# the number of positional arguments given to this
- invocation of the shell.
- $? the exit status of the last command executed is
- given as a decimal string. When a command
- completes successfully, it returns the exit status
- of 0 (zero), otherwise it returns a non-zero exit
- status.
- $$ the process number of this shell - useful for
- including in filenames, to make them unique.
- $! the process id of the last command run in
- the background.
- $- the current options supplied to this invocation
- of the shell.
- $* a string containing all the arguments to the
- shell, starting at $1.
- $@ same as above, except when quoted.
It's all further complicated by the distinction between SHELL and ENVIRONMENT variables ( SHELL variables only apply to the current shell, ENVIRONMENT variables apply to all Shells ) and the fact that a single user can run multiple shells all with different variables defined, at the same time, and switch between them at will.
Originally posted by DaveB View PostYour turn now ZG. What is a NIXIE tube and why on earth would anyone eant to use them in a watch?
A nixie tube is a long obsolete display technology invented in the 1950s.
It uses neon gas at low pressure in a thing that looks like a valve to display the numbers 0 to 9.
These are now rather popular for making clock displays. Probably because they're expensive.
As to why you'd want two in your wrist watch, I'm afraid it's beyond me.
Must take a lot of batteries to keep it going.Comment
- $1 - $9 these variables are the positional parameters.
-
that's all well and good talking about apples and indians and cars and whatnot but what we really want, nay NEED to know, is what AtW has had for lunch and what s the latest SKA news?The proud owner of 125 Xeno Geek PointsComment
-
-
We'll have to wait 366 days - he's gone silent hasn't he?Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
but.. but ... what about SKA? and lunch reports? and all that opinionated knowledge.. I truly hope he comes back soon and tells us his thoughts, life is just not the same without the squirrel loving ruskie around..
The proud owner of 125 Xeno Geek PointsComment
-
Originally posted by thunderlizard View Post??Code:Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved. c:\>echo $$ $$
Can anyone explain that?Code:GNU bash, version 3.2.17(1)-release (powerpc-apple-darwin9.0) Copyright (C) 2005 Free Software Foundation, Inc. echo $$ 3946
Behold the warranty -- the bold print giveth and the fine print taketh away.Comment
-
On the Mac you get ...Originally posted by Sysman View PostCan anyone explain that?Code:GNU bash, version 3.2.17(1)-release (powerpc-apple-darwin9.0) Copyright (C) 2005 Free Software Foundation, Inc. echo $$ 3946

echo $$
760Comment
-
Ah, Thanks Dave.Originally posted by Sysman View PostCan anyone explain that?Code:GNU bash, version 3.2.17(1)-release (powerpc-apple-darwin9.0) Copyright (C) 2005 Free Software Foundation, Inc. echo $$ 3946

ps -ax |grep 3946
3946 ttys000 0:00.07 -bashBehold the warranty -- the bold print giveth and the fine print taketh away.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Bills of Exchange fail to avoid new umbrella company rules, says HMRC Today 05:32
- Is permanent employment still the safer bet? Yes, but it's a lot less safe than it used to be. Yesterday 04:34
- Is your Director’s Loan Account (DLA) a target of HMRC’s closer look at close companies? May 29 04:45
- Is your Director’s Loan Account (DLS) a target of HMRC’s closer look at close companies? May 29 04:45
- Contractors, are you making any of the five big limited company bank account mistakes of 2026? May 28 05:51
- ‘Welcome’ increase in HMRC mileage rates for contractors using their own cars for work May 27 05:18
- King’s Speech 2026 including a welcome Late Payments Bill still leaves contractors short May 26 04:42
- Getting a mortgage when you're a contractor. The system wasn't built for you. Is that finally changing? May 22 06:11
- How deepfake AI contractors threaten umbrella company supply chains under JSL May 20 06:31
- Mileage rates review: Will the first AMAP rethink in 15 years benefit contractors? May 19 05:57


Comment