Welcome to the most active Linux Forum on the web.
Go Back > Blogs
User Name



How to pass command line arguments to main() through GDB? - C

Posted 01-10-2012 at 07:12 AM by TheIndependentAquarius
Updated 02-03-2012 at 06:32 AM by TheIndependentAquarius (Thanks to Mr.Code for pointing out the nonsense)

#include <stdio.h>
#include <string.h>

int main (int argc, char *argv[])
   if (argc >= 2)
      int i;
      for (i = 1; i < argc; i++)
         printf ("\nHaalloo! %s", argv[i]);
      printf ("\nForgot to key in something?");

   return 0;
Passing command line arguments to main() through...
Senior Member
Posted in GNU GDB
Views 11372 Comments 3 TheIndependentAquarius is offline

samba Account with LDAP in Centos 6

Posted 01-09-2012 at 09:07 AM by

Please Help I am using Centos 6. I wanted to configure samba to use ldap account as i am using LDAP for SVN .
Unnikrishnan P R

Thanks in Advance
LQ Newbie
Posted in Uncategorized
Views 4806 Comments 1 is offline

To copy the Content of web in unix file.

Posted 01-09-2012 at 01:42 AM by azheruddin

I have one quey iam hitting one URL in browser its giving a expected output,but when iam trying through SSH then its connecting to that site but not able to copy the content of that file.
I need that browser contents in one file,i want to apply some manipulation on that one,these contents are in XMl and changes daily so daily i need that content so i can perform some operation and get a desired result,but iam not getting the contents in UNix Environment,so anyone can help...
Posted in Uncategorized
Views 332 Comments 0 azheruddin is offline

Computer Industry is in trouble

Posted 01-08-2012 at 04:55 PM by MystikMitch

I have settled for kde debian on my other machine. I'm however worried more about another topic.

I believe this is to be true even though I have not read the book and only the description.

This guy makes perfect sense I must...
Posted in Uncategorized
Views 9955 Comments 3 MystikMitch is offline

initramfs Emergency Shell

Posted 01-07-2012 at 10:19 PM by Bratmon

When moving my system between drives today, I forgot to change the entry for / in /etc/fstab .
When booting, it couldn't find / , so it dropped me to the initramfs emergency shell.
I solved my problem from that shell.
I belive this is the first time a problem was solved in that shell in all recorded history.
Posted in Uncategorized
Views 641 Comments 0 Bratmon is offline


All times are GMT -5. The time now is 12:01 PM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration