Request help with C/C++, Perl, PHP, Python, Ruby, Bash Scripts, or other Linux programming/scripting related issues
Hi, I want to split a string and get specific parts using bash. for example: a="Hello world 111 222 .jpg" Now I want to split a by...
Good morning, i'm a newbie of the forum. My name is Massimo and i'm from Italy (don't ask me about pizza, wine and maccheroni, please! :) ). i'm...
I wrote this up and it doesn't work. Where have I stuffed up? <SCRIPT type="text/javascript"> function selector('glancej') {...
how do i use the ls command with a single argument to list all files whose names end with the letter 'r'?
Hi, I want to implement 1) singly linked list using any non-blocking algo. 2) double linked list using any non-blocking algo. As a starting...
include<stdio.h> #include<sched.h> #include<stdlib.h> #include<unistd.h> #include<sys/types.h> int fn(void *a) { int *p; ...
So gcc offers: __attribute__((stdcall)) __attribute__((cdecl)) __attribute__((fastcall)) but you're supposed to also handle not only the...
Hello, I'd like to access my Linux device driver using MMAP. This is no problem in C, but in Java I'm a little lost. From what I can tell the...
register unsigned var=1234; register unsigned dwords=5; while (dwords--) { var+=5; __asm rol var,1 } I see gcc supports inline assembly,...
Hello. Im want to write a script which empty lines for text. I want to as where i made a mistake. #!/bin/bash echo Enter file name read x a=$(sed...
I use a simple script to time an exercise routine: sleep 5m ; warm up 5 minutes beep sleep 5m ; exercise 5 minutes beep beep and so on.
I have a system could allow only one application running at any time. But without implementing any system wide protection or stamp. Application know...
Hi Experts , We recently migrated from Unix to GNU Linux . We were using the command typeset -Z3 for incrementing counter values like (...
Hi, So I read ld can link with ELF or COFF libraries. But now how do I tell GCC via the header file that the names have leading underscores? ...
I've built server using webtoolkit.eu. It runs fine on my development system, which runs Debian 6.0.2 64-bit. However, when I install it on my...
I have written a custom cron. This cron executes a rake task every 5 minutes. I also log the trace of this execution in a file locally on my server....
Hi everyone, I try to measure the runtime of my program one time under control of ptrace and one time without. The problem is that is seems like...
i'm trying to check if both files exist and if they do i will run a code block to be developed later; otherwise skip. The files im checking need a...
Hi! I am writing a server program (using C) that executes a script when the client asks for it, but I am not sure about how to see the output of that...
Hello, under windows you can link with nothrownew.obj to have new return null instead of throw an execption. Works for the lib as well since...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules