What is the difference between the C programming language and C programming under Linux? Are the syntax same in both them? Or is the difference only when you execute the program? Answer The C language is governed by the ISO approved C standard and it does not take in to account the underlying platform on whic…
Tag: linux
How to execute a sudo command with in a C/C++ Program?
I would like to execute one of my sudo commands through one of my C demon. I use the command system(echo MYPASSWORD | sudo -v -S); in my C code. It runs fine when I execute the demon. However, when I exit from the terminal it fails with a return value of 256. Please suggest to me some alternate way
Can’t access phpmyadmin after installation
I’m trying to install phpmyadmin on my new server, following this guide then added phpmyadmin to apache configuration: and restarted apache: All this by SSH. But now when i try to access: x.x.x.x/phpmyadmin all that i get is that my browser downloads a file… Can someone help with this? Answer If y…
How to find file creation date in linux using java?
I need to get file creation date in linux machine using java. Many workarounds worked good in windows but failed in linux. Need a way to get file creation time in linux. Please note that my linux machine has java6 installed. Any help is much appreciated. Thanks in adavance. Answer You can use stat command in …
Sonar Qube uninstall linux
To install sonar there is a sonar.sh for it. How to uninstall sonar then on linux shell? Is there any script to remove all and don’t leave any trash in the system? Answer To start Sonar : sonar.sh start To stop Sonar : sonar.sh stop To uninstall Sonar : remove the Sonar installation directory. That̵…
XBee Linux Serial Port on Raspberry Pi
I have 2 Adafruit XBee 2 Modules each connected with 1 FTDI cable (ttyUSB0 and ttyUSB1)to the Raspberry Pi via a USB hub. I configure both XBee modules independently to be on the same PAN and then I try to read in a while loop with one, and write a simple message in a while loop in the other. For
Jenkins dead but pid file exists
I am running into an issue where a fresh install of Jenkins is not accessible. This is the error and OS details: Upon starting jenkins results in “OK” status message however if I run status-all | grep jenkins it results in: Running on Red Hat Enterprise Linux Server release 6.2 (Santiago) with Yum…
Git merge directories that have become separated
Not quite sure how to explain this clearly, but here goes. Due to a bug in Tortoise-git, we’ve ended with a situation like this; All our code should be under a directory structure like this (this is Symfony2 project); but, due (we think) to the bug in Tortoise-git, when we pull the code onto a linux box…
gotoxy() function using printf() ‘s position
Hello there i am working a project which need the gotoxy() function i have read gotoxy() implementation for Linux using printf i wonder why the need to change the x y order in printf, is that just to fit the coordinate system? in my way, i change it to printf(“%c[%d;%df”,0x1B,x,y) to meet my needs…
Easy way to fill in an Excel file with Python
Let us say I have an excel file called test.xlsx, which is a workbook with three sheets, where sheet1 is called hello1, sheet2 two is called hello2, and sheet3 is called bye. Now, I’d like to read the file, and then re-write the same file but ONLY change the values in (column B, row 11) of the sheet nam…