|
ECS Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Re: [ecs] linux question Neil Cherry Tue, 15 Feb 2005 19:46:00 -0500 |
Mark Gilmore wrote:
> how can a C pgm obtain the "original" command which triggered it's
> execution ?:
> i.e.: if i enter:
> mypgm *.c
> main()'s arg[...] will be a list of each .c file.
> But what I need is the "*.c" (i.e. what was actually entered - not the
> shell's interpretation).
Short answer, you can't.
Longer answer, instead enter at the command line the following:
mypgm \*.c
or
mypgm '*.c'
Once the shell has interpreted the data the command to be executed
can't see the original uninterpreted command line.
--
Linux Home Automation Neil Cherry ncherry@comcast.net
http://home.comcast.net/~ncherry/ (Text only)
http://hcs.sourceforge.net/ (HCS II)
http://linuxha.blogspot.com/ My HA Blog
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects