10 More Discussions You Might Find Interesting
1. Programming
Hello everyone, this is my first post.
I have a task to use a fork to create multiple processes and then use execlp to run another program to add 2 numbers.
The problem I am having is we are supposed to use the exit() call in the execlp to return the small integer. This is a bad way to... (3 Replies)
Discussion started by: Johnathan_1017
3 Replies
2. Programming
Hi,
I'm trying to build my own little shell as an exercise. I want to run emacs from my shell so I'm using execvp() command. The problem is when I run it with arguments at background (e.g "emacs file1 &") it stays "hung" (I don't get the prompt back) while without arguments it runs ok ("emacs... (1 Reply)
Discussion started by: Rap_master
1 Replies
3. Programming
Hello,
I need to do a function in ansi c for linux that work like command cp.I try with this but doesn't work:
int copy (char *src, char *dst)
{
ret = execlp("/bin/cp", "cp", "/home/linux/working", (char*)src,(char*)dst)
return 0;
}
The copy function must do the next "cp origein.txt... (2 Replies)
Discussion started by: NewBe
2 Replies
4. UNIX for Dummies Questions & Answers
int main ()
{ int p=1;
while (p>0)
p=fork();
execlp("prog",prog",Null);
return 0;
}
and thanks :b: (1 Reply)
Discussion started by: foufo07
1 Replies
5. HP-UX
/************************************************************************
*
* TEST NAME: setrlimitd_su.c
*
* PURPOSE: To verify the soft (rlim_cur) and hard (rlim_max) limit
* of process RLIMIT_DATA resources correctly inherited by
* the exec() system call.
*
* RESULT: function call should... (1 Reply)
Discussion started by: mansa
1 Replies
6. Programming
Hi, I have a very small program where I call execlp() to execute sort.
Everything works fine. But sort has a -T option which can be used to specify a temporary directory. Now when I use -T with execlp() it does not work.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include... (4 Replies)
Discussion started by: the_learner
4 Replies
7. Programming
Hi ,
I m actually trying to implement pipes program,but after executing the execvp(),my program is getting hanged up :mad:
Actaully i m getting the desired output expected from execvp()...but once results are displayed on the output screen ,program is getting hanged up
values of... (3 Replies)
Discussion started by: Crab
3 Replies
8. UNIX for Dummies Questions & Answers
I get this error :
execvp:ar:Arg list too long
when i am trying to link the .obj files created on unix box.
Any resolution to this?
Thanks
Mohit (1 Reply)
Discussion started by: mohitp
1 Replies
9. UNIX for Dummies Questions & Answers
i am having an application that contains a push button.
On the click of this push button i want to call a executable file using execvp
function block fo2 push button
{
char *args;
args=NULL;
execvp("/home2/xyz/app1.exe",args)
}
but after compilation when i press this button the... (3 Replies)
Discussion started by: kunu
3 Replies
10. UNIX for Dummies Questions & Answers
what's the difference between the two? (3 Replies)
Discussion started by: hurleyint1386
3 Replies