The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Programming
what does this mean?
Tags
programming
Login to Discuss or Reply to this Discussion in Our Community
Page 1 of 2
1
2
>
Thread Tools
Search this Thread
Top Forums
Programming
what does this mean?
#
1
02-04-2011
omega666
Registered User
162,
0
Join Date: Oct 2010
Last Activity: 13 April 2011, 3:05 PM EDT
Posts: 162
Thanks Given: 2
Thanked 0 Times in 0 Posts
what does this unix command mean?
when a C program is run from a unix server using this:
* myprog [-d dictionary] string
where myprog is the name of the program. What do the arguments mean? and the * at the beginning?
Last edited by omega666; 02-04-2011 at
12:18 PM
..
omega666
View Public Profile for omega666
Find all posts by omega666
#
2
02-04-2011
Scott
Administrator Emeritus
9,179,
1,331
Join Date: Jun 2009
Last Activity: 26 February 2019, 5:57 PM EST
Posts: 9,179
Thanks Given: 430
Thanked 1,331 Times in 1,120 Posts
The asterisk has no place there - it's wrong, and dangerous.
Code
:
$ echo rm > rm && chmod 700 rm $ touch x y $ ls rm x y $ * $ ls rm
Options in square brackets generally mean that the option is, well, optional.
And there's nothing special, or different, about how C programs are run, compared to any other program.
Scott
View Public Profile for Scott
Find all posts by Scott
#
3
02-04-2011
omega666
Registered User
162,
0
Join Date: Oct 2010
Last Activity: 13 April 2011, 3:05 PM EDT
Posts: 162
Thanks Given: 2
Thanked 0 Times in 0 Posts
i get the string argument is just passing a string, but what does -d dictionary mean, what does that argument do?
omega666
View Public Profile for omega666
Find all posts by omega666
#
4
02-04-2011
Scott
Administrator Emeritus
9,179,
1,331
Join Date: Jun 2009
Last Activity: 26 February 2019, 5:57 PM EST
Posts: 9,179
Thanks Given: 430
Thanked 1,331 Times in 1,120 Posts
I presume it is for (optionally) specifying a dictionary name that
myprog
can use.
If not, you should ask whoever wrote
myprog
what it is used for.
Last edited by Scott; 02-04-2011 at
12:39 PM
.. Reason: Misread: Replaced "directory" with "dictionary"
Scott
View Public Profile for Scott
Find all posts by Scott
#
5
02-04-2011
omega666
Registered User
162,
0
Join Date: Oct 2010
Last Activity: 13 April 2011, 3:05 PM EDT
Posts: 162
Thanks Given: 2
Thanked 0 Times in 0 Posts
do you mean it is targeting a file in the same directory?
omega666
View Public Profile for omega666
Find all posts by omega666
#
6
02-04-2011
Scott
Administrator Emeritus
9,179,
1,331
Join Date: Jun 2009
Last Activity: 26 February 2019, 5:57 PM EST
Posts: 9,179
Thanks Given: 430
Thanked 1,331 Times in 1,120 Posts
I didn't write
myprog
so I would have no idea.
(sorry, I misread the first time as "directory", but it's "dictionary".)
Who's program is this? Is there documentation or a man page - or a man - that you could consult?
Scott
View Public Profile for Scott
Find all posts by Scott
#
7
02-04-2011
omega666
Registered User
162,
0
Join Date: Oct 2010
Last Activity: 13 April 2011, 3:05 PM EDT
Posts: 162
Thanks Given: 2
Thanked 0 Times in 0 Posts
what would i type in man, dictionary? or assuming that dictionary is a file in the same directory, what does the -d mean?
omega666
View Public Profile for omega666
Find all posts by omega666
Page 1 of 2
1
2
>
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×