Execv Error While Calling Usrbincdrecord.prodvd No Such File Or Directory
Contents |
Sat, 11 Nov 2006 20:30:23 +0100 Hi, I can not write to a RW/DVD (device HL-DT-ST RW/DVD GCC-4481B). NOT to a DVD-R and NOT to a execv no such file or directory DVD-RW I have no problem when I write to a CD-R or
Slurmstepd: Execve(): No Such File Or Directory
CD-RW with the same device. I have tried it with tools as xcdroast and k3b. Both utilities recognize my execve example c dvd device. -This is the error in xcdroast: Calling: /usr/lib/xcdroast-0.98/bin/xcdrwrap CDRECORDPRODVD dev= "/dev/cdrom-hda" gracetime=10 fs=4096k driveropts=burnfree -v -useinfo speed=48 -dao -eject -pad -data "/install/fedora/FC-6-i386-DVD.iso" ... execv error while calling /usr/bin/cdrecord.prodvd
Slurmstepd: Execve(): Permission Denied
(No such file or directory) -And this is the error with k3b: growisofs ----------------------- :-( /dev/hda: media is not recognized as recordable DVD: 10 growisofs command: ----------------------- /usr/bin/growisofs -Z /dev/hda=/install/fedora/FC-6-i386-DVD.iso -use-the-force-luke=notray -use-the-force-luke=tty -dvd-compat -speed=2.4 -use-the-force-luke=bufsize:32m -When I try to format a DVD-RW with command 'dvd+rw-format /dev/dvd', then I get this error: * DVD±RW/-RAM format utility by ..., version 6.1. :-( mounted media man execve doesn't appear to be DVD±RW or DVD-RAM -In my fstab: /dev/dvd /media/dvd autofs ro,user,noauto 0 0 But I have also tried with iso9660 and rw (instead of ro), and without this line. -running 'dvd+rw-mediainfo /dev/dvd' with a DVD-RW gives this output: INQUIRY: [HL-DT-ST][RW/DVD GCC-4481B][1.16] GET [CURRENT] CONFIGURATION: Mounted Media: 10h, DVD-ROM READ DVD STRUCTURE[#0h]: Media Book Type: 00h, DVD-ROM book [revision 0] Legacy lead-out at: 0*2KB=0 READ DISC INFORMATION: Disc status: complete Number of Sessions: 1 State of Last Session: complete Number of Tracks: 1 READ TRACK INFORMATION[#1]: Track State: partial Track Start Address: 0*2KB Free Blocks: 0*2KB Track Size: 2298496*2KB FABRICATED TOC: Track#1 : 14 0 Track#AA : 14 2298496 Multi-session Info: #1 0 READ CAPACITY: 2298496*2048=4707319808 - running 'dvd+rw-mediainfo /dev/dvd' with a DVD-R gives this output: INQUIRY: [HL-DT-ST][RW/DVD GCC-4481B][1.16] GET [CURRENT] CONFIGURATION: Mounted Media: 10h, DVD-ROM READ DVD STRUCTURE[#0h]: Media Book Type: 25h, DVD-R book [revision 5] Legacy lead-out at: 2298496*2KB=4707319808 READ DISC INFORMATION: Disc status: complete Number of Sessions: 1 State of Last Session: complete Number of Tracks: 1 READ TRACK INFORMATION[#1]: Track State: partial Track Start Address: 0*2KB Free Blocks
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn
Execvp
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Execlp
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, bash no such file or directory helping each other. Join them; it only takes a minute: Sign up no such file or directory when using execv() up vote 0 down vote favorite Im trying to write a basic shell that can interpret simple commands https://www.redhat.com/archives/rhl-list/2006-November/msg02788.html like date, ls in the language c. I start by getting the PATH variable like this to later pass it on to the execv() function. const char *name = "PATH"; char *value; value = getenv(name) and i print out the value and i get this: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games Note that i am using virutalbox to run Ubuntu. And this is the code that i am using to try a simple ls command. In the code below the variable http://stackoverflow.com/questions/33813944/no-such-file-or-directory-when-using-execv line is the actual command that the user wrote, in our case it is "ls" pid_t pid, wpid; int status; pid = fork(); if (pid == 0) { // Child process if (execv(value, line) == -1) { perror("lsh"); } exit(EXIT_FAILURE); } else if (pid < 0) { // Error forking perror("lsh"); } else { // Parent process do { wpid = waitpid(pid, &status, WUNTRACED); } while (!WIFEXITED(status) && !WIFSIGNALED(status)); } And the result i get is this: lsh: no such file or directory any ideas? c shell execv share|improve this question asked Nov 19 '15 at 20:39 Timo Cengiz 1,2571619 2 Are you sure it's lsh? –Eugene Sh. Nov 19 '15 at 20:41 Im not sure what you mean? @EugeneSh. –Timo Cengiz Nov 19 '15 at 20:42 I mean it looks weird that you have chosen to run some "opensource SSH protocol implementation project" according to Wiki. –Eugene Sh. Nov 19 '15 at 20:44 As a side note, you most likely want _exit not exit after a failed exec* call –PSkocik Nov 19 '15 at 21:20 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted The execv() system call uses the name you specify in the first argument as the file name of the executable; it does not do a PATH-based search. Tha
you are not using graphics enabled BOINC client, you may use manual registration form. Returning Participants Your account PRPNet server Manual Sieving Create or http://www.primegrid.com/forum_thread.php?id=6307 Join a Team Download BOINC Applications Community Participant Profiles PrimeGrid Message boards PrimeGrid chat room [external] PrimeGrid Wiki [external] Mersenneforum.org Forums [external] Leader Boards Challenge Series Top Countries Top Participants Top Computers Top Teams Top Prime Finders Results PrimeGrid Mega Primes PrimeGrid Primes by Project Published results Other Server statusSubproject statusTask statusFastest GPUs drummers-lowrise Advanced search Message boards no such : Sieving : execv: No such file or directory Post to thread Subscribe SortOldest firstNewest firstHighest rated posts first Author Message whynotSendmessage Joined: 9 Mar 11Posts: 97ID: 89957Credit: 13,999,947RAC: 15,261 Message 85921 - Posted: 6 Jun 2015 | 14:55:44 UTC Paid no attention here, I'm sorry. Got loads of failures like this -- checked 40 of them, all no such file the same. That misterious 'file or directory', what is it I'm missing here? ____________ I'm counting for science, Points just make me sick.ID: 85921 | Reply Quote Michael GoetzVolunteer moderatorProject scientistSendmessage Joined: 21 Jan 10Posts: 7901ID: 53948Credit: 74,012,473RAC: 99,775 Message 85922 - Posted: 6 Jun 2015 | 15:32:00 UTC - in response to Message 85921. Paid no attention here, I'm sorry. Got loads of failures like this -- checked 40 of them, all the same. That misterious 'file or directory', what is it I'm missing here? It's impossible to say from this end, but usually that sort of error is related to the BOINC installation not being correct for some reason. It's usually possible to find and correct the problem, but often the easiest thing is to just remove (completely) the BOINC installation and all BOINC directories and reinstall. ____________ My lucky number is 75898^524288+1 Please do not PM me with support questions. They will usually go unanswered. Ask on the forums instead. Thank you!ID: 85922 | Reply Quote whynotSendmessage Joined:
be down. Please try the request again. Your cache administrator is webmaster. Generated Sat, 15 Oct 2016 11:02:56 GMT by s_ac15 (squid/3.5.20)