S
Sheldon
Hi,
I'd like to make a system call from C to zip the output fie before
exiting.
This zipping process will take a little more time of course.
I tried the following:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/syscall.h>
char cmd[500];
strcpy(cmd," bzip2 -v9 /path/filename /path/filename.bz2");
status = system(cmd);
But the system returned a -1 and exited without any more error
message.
Does anyone know a better way of doing this?
/M
I'd like to make a system call from C to zip the output fie before
exiting.
This zipping process will take a little more time of course.
I tried the following:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/syscall.h>
char cmd[500];
strcpy(cmd," bzip2 -v9 /path/filename /path/filename.bz2");
status = system(cmd);
But the system returned a -1 and exited without any more error
message.
Does anyone know a better way of doing this?
/M