Page 1 of 2
How do you get command-line arguments in linux?
Posted: Sat Mar 17, 2012 3:56 pm
by JustinJack
Hello, you guys are going to be hearing a lot from me! I just installed Fedora 16 to dual boot on my win 7 box and am trying to get familiar with the linux API. I wish they has a nice pretty MSDN...Welp, I would greatly appreciate it if someone could show me how to do this:
Code: Select all
szCommandLine.s = Peeks(GetCommandLine_())
for the linux version of PB. It's easy enough in C, but alas. I like PB. That's a cool wish-list item, maybe a main() function in PB that if it's there, it will receive arguments... something like:
Procedure.i Main( argc.i, List argv.s() )
or something...
Re: How do you get command-line arguments in linux?
Posted: Sat Mar 17, 2012 4:36 pm
by Little John
Re: How do you get command-line arguments in linux?
Posted: Sun Mar 18, 2012 5:14 pm
by JustinJack
Your are such a spicy jalapeno.
Re: How do you get command-line arguments in linux?
Posted: Sun Mar 18, 2012 5:58 pm
by Little John
JustinJack wrote:Your are such a spicy jalapeno.
What is your problem?
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 12:27 am
by JustinJack
My problem? Probably that you need to take ESL...(eyes rolling...) But thanks for the help, mein kompf.
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 2:56 am
by jassing
JustinJack wrote:My problem? Probably that you need to take ESL...(eyes rolling...) But thanks for the help, mein kompf.
in the context, that's pretty hate-filled -- you asked a question, he pointed you tot he documentation; you responded with a very odd response that was not in any kind of programming or 'thanks for your help' type of context...
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 7:15 am
by idle
JustinJack, don't be surprised if no one bothers to offer any help in the future, with replies like that you don't deserve any.
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 8:58 am
by Little John
Now that's remarkable:
You try to help someone, and in appreciation of it you get an odd response.
Then after more than 1 year, there is another post with a dumb and hate-filled personal attack.
Jassing and idle, thanks for your comments.
idle wrote:JustinJack, don't be surprised if no one bothers to offer any help in the future, with replies like that you don't deserve any.
Agreed.
Well, he obviously needs a sort of help that this forum can not offer anyway ...
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 10:46 am
by luis
idle wrote:JustinJack, don't be surprised if no one bothers to offer any help in the future, with replies like that you don't deserve any.
Reality check: I would be surprised.
There is always someone willing to help, no matter what. Some people don't remember, others don't care about it.
You can joyfully be an ass with no particular consequences.
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 5:09 pm
by Kuron
Little John wrote:
Then after more than 1 year, there is another post with a dumb and hate-filled personal attack.
Just know his comments do not reflect the opinions of others you help.

Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 7:02 pm
by JustinJack
Oh my goodness. You guys really crack me up. Seriously. In Texas jalepenos are popular. A spicy jalapeno is the best kind. So if a Texan calls you a "spicy jalapeno" that's a compliment. If you respond to a compliment, (heck anything) with "What's your problem?", no matter where you're from, that carries an implied insult. So, ask a stupid question....get a stupid answer... If you don't understand, you could ask..."What do you mean by that?" Which carries no insult. Now, if in Germany, calling someone a "Spicy Jalapeno" is an old, traditional folk way of telling someone to **** off, then I'm wrong..and I apologize, Little John, I didn't mean that. But if not, e-mail me your address and I'll send you a box of tissues for the tears.
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 7:05 pm
by JustinJack
And, by-the-way...the after-a-year deal. (shrug)...I just found it. But I know a *heck* of a lot more now than I did then...so I will peruse some threads and see if I can answer anyone's questions without asking them what their problem is...I dunno...I'll try!
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 7:27 pm
by luis
JustinJack wrote:You guys really crack me up.
Just count me out because I was replying to idle's remark in general (and I stand by it), not to your post in particular simply because I didn't know what being a spicy whatever means, and so I didn't have an opinion about that.
Anyway when replying you should consider there is a high degree of probability you are not talking to someone who lives in the same city block of yours, this is if you like to be understood. "what's your problem" should have been "what you are talking about/what do you mean" but nevertheless it should have given you the hint it was better to rephrase your original sentence.
On the other hand even when asking for clarifications,
you don't always get an answer, so even that it's not foolproof.
Final lesson: A little more of ingenuity from both fronts could have saved the day (or the years in this case).
Re: How do you get command-line arguments in linux?
Posted: Sat May 04, 2013 10:41 pm
by JustinJack
Si, Signore. I suspect you may be correct. Maybe we should all speak (learn?) esperanto. Ha. Anyway. What I meant was "Thank you". Have a good weekend, Luis. This has been too much social media for me, since I don't even have a facebook account. I guess I'll check this thread around this time next year!
Re: How do you get command-line arguments in linux?
Posted: Sun May 05, 2013 1:44 am
by MachineCode
JustinJack wrote:thanks for the help, mein kompf.
Calling a German person Hitler (by referring to them as "mein kompf") is extremely insulting, even for I as a bystander. Perhaps that is why Little John got angry? I can only assume so.