It is currently Tue Jun 18, 2013 10:10 pm

All times are UTC + 1 hour




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: How do you get command-line arguments in linux?
PostPosted: Sat Mar 17, 2012 3:56 pm 
Offline
User
User

Joined: Thu Feb 04, 2010 7:34 am
Posts: 88
Location: Decatur, TX
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:
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...


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat Mar 17, 2012 4:36 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 1587
Location: Berlin, Germany
http://www.purebasic.com/documentation/ ... meter.html

_________________
Math problems?
Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sun Mar 18, 2012 5:14 pm 
Offline
User
User

Joined: Thu Feb 04, 2010 7:34 am
Posts: 88
Location: Decatur, TX
Your are such a spicy jalapeno.


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sun Mar 18, 2012 5:58 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 1587
Location: Berlin, Germany
JustinJack wrote:
Your are such a spicy jalapeno.

What is your problem?

_________________
Math problems?
Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 12:27 am 
Offline
User
User

Joined: Thu Feb 04, 2010 7:34 am
Posts: 88
Location: Decatur, TX
My problem? Probably that you need to take ESL...(eyes rolling...) But thanks for the help, mein kompf.


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 2:56 am 
Offline
Addict
Addict
User avatar

Joined: Wed Feb 17, 2010 12:00 am
Posts: 1007
Location: Anderson Island, WA
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...


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 7:15 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 2506
Location: New Zealand
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.


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 8:58 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 1587
Location: Berlin, Germany
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 ...

_________________
Math problems?
Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 10:46 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 2269
Location: Italy
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.

_________________
[ Home ] [ My PC ] [ New to PB ? ]


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 5:09 pm 
Offline
Addict
Addict

Joined: Sat Oct 17, 2009 10:51 pm
Posts: 919
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. :wink:

_________________
If you are new to PB you should check out the CodeArchiv. It has examples for almost everything you would want to do in PB.


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 7:02 pm 
Offline
User
User

Joined: Thu Feb 04, 2010 7:34 am
Posts: 88
Location: Decatur, TX
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.


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 7:05 pm 
Offline
User
User

Joined: Thu Feb 04, 2010 7:34 am
Posts: 88
Location: Decatur, TX
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!


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 7:27 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 2269
Location: Italy
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).

_________________
[ Home ] [ My PC ] [ New to PB ? ]


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sat May 04, 2013 10:41 pm 
Offline
User
User

Joined: Thu Feb 04, 2010 7:34 am
Posts: 88
Location: Decatur, TX
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!


Top
 Profile  
 
 Post subject: Re: How do you get command-line arguments in linux?
PostPosted: Sun May 05, 2013 1:44 am 
Offline
Addict
Addict

Joined: Tue Feb 22, 2011 1:16 pm
Posts: 1480
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.

_________________
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye