Skip to content

auto_start error in ld86 compiling

I’m trying to compile a fairly basic program under Linux and I’m having trouble with ld86. Anyone have an idea as to what auto_start is? UPDATE 3/12/2012: Seems to go away when I define my own printf()… Answer Huzzah! I have found it. When calling main() in main.c I was using parameters like…

Tomcat 6 log4j – linux – safely remove catalina.out

Adding log4j [1] in tomcat 6.0.x forces tomcat to produce logs in “catalina” file. However, the default catalina.out is still produced and populated with logs. So, questions: Is it safe to delete catalina.out file (while server running)? If yes, could this deletion be added to tomcat startup scrip…

Find files and print only their parent directories

I have the following commands. Wherever the .user.log file is present, we need to print the parent directories (i.e hht and wee1.) How can this be done? Answer Am I missing something here. Surely all this regex and/or looping is not necessary, a one-liner will do the job. Also “for foo in $()” sol…

Linux readw and readl endianness

May anyone please explain the endianness of returned values by readw and readl. I am currently using PowerPC arch. Thanks and Best Regards! Answer “readw” and “readl” return the value of the underlying architecture. As it happens, a PowerPC can be either big- or little endian. AFAIK, m…

Use grep to match a pattern in a line only once

I have this: Which gives this: I understand whats happening. How do I stop grep from trying to continue matching after 1 successful match? How do I get only Answer You need to do the grouping: (…) followed by the exact number of occurrence: {<n>} to do the job: Hope it helps. Cheers!!