Well, here is an article from the Linux Journal.
This and 'man clone' should help.
Cheers,
arne...
User Profile
Collapse
-
If we're talking C here, have a look at the functions fork(), getpid() and getppid().
HTH,
ArneLeave a comment:
-
-
If we're talking C here, you may want to have a look at nanosleep(2). The man page says something about 'more easily continuing' the sleep in case a signal has been received.
If you can afford to spent the CPU cycles, you can also implement a busy wait using gettimeofday(2) . Depends on what you need.
HTH,
arneLeave a comment:
-
You may also want to have a look at git. There are also a number of articles available that compare the pros and cons of the different systems.
HTH,
arneLeave a comment:
-
When producing a segfault you're typically accessing a memory region that you should not access, e.g. dereferencing a NULL pointer.
The core file that has been produced will give you a clue where the problem lies. (If you're using gcc use the '-g' option for producing debugging info; gdb -c <core file> <executable file> will then help you to identify the problem).
HTH,
arne...Leave a comment:
-
-
Did you try to Google for "cron windows"? There seem to be several projects that provide cron functionality on windows.
HTH,
arne...Leave a comment:
-
If the executable is not started in the background (or detaches itself from the shell or execves some other programs), the shell will not continue until the executable has returned. So, you should be able to simply do the mail transfer as the next command after the invocation of the executable.
Let me know if I missed the point here :)
arne...Leave a comment:
-
If you do not have control over sample.pl yopu could try
Code:echo "pathname" | /usr/bin/perl /home/name/sample.pl
pathname you want to pass a parameter, so that
you can use
Code:/usr/bin/perl /home/name/sample.pl pathname
should use...Leave a comment:
-
-
What about
sed s/http/ftp/ test.file ?
If you other have other http entries you don't want to change, try \ (backslash) to escape / (forward slash):
sed s/http:\/\/nameofsite.com/ftp:\/\/nameofsite.com/ test.file
I'm not an expert in sed though ...
HTH,
arne...Leave a comment:
-
Did you try to google for an "rpm tutorial"? There are plenty of them around and you will certainly find a starting point. If you encounter problems, feel free to post again!
arne...Leave a comment:
-
You mean 'scheduling' as in 'process scheduling'? Use the Linux Cross Reference . For the scheduler browse to the kernel/sched.c file.
HTH,
arne...Leave a comment:
-
-
I recommend Beej's Guide to Network Programming. It contains all you need and also provides sample code.
HTH,
arne...Leave a comment:
-
-
As far as I understand your code, you check if there are files in one folder and if so, invoke the other script which manipulates them.
Did you try
Code:if [ -z "$(ls /home/as400/muestras)" ]
HTH,
arneLeave a comment:
-
I usually use gettimeofday() for timing measurements in C:
[CODE=c]
#include <sys/time.h>
...
struct timeval s, e;
unsigned long tdiff;
gettimeofday( &s, NULL );
/* do your stuff here */
gettimeofday( &e, NULL );
tdiff = (e.tv_sec-s.tv_sec) * 1000000+(e.tv_u sec-s.tv_usec);
[/CODE]
HTH,
Arne...Leave a comment:
-
No activity results to display
Show More
Leave a comment: