Error 32512 Linux
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss exit code 32512 in unix the workings and policies of this site About Us Learn more
Wexitstatus 127
about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack
Exit Code 256
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping
Exit Code 127
each other. Join them; it only takes a minute: Sign up Why child process returns exit status = 32512 in unix? up vote 10 down vote favorite 1 In my program I'm executing given command and getting result (log, and exit status). Also my program have to support shell specific commands (i.e. commands which contains shell specific characters ~(tild),|(pipe),*). But when I try to run sh -c ls | wc in my home directory via my program it failed and its exit status was 32512, also in stderr stream "sh: ls | wc: command not found" was printed. But the interesting thing is that the command sh -c ls | wc works correct if I run it in shell. What is the problem? Or more preferable how can I run shell specific commands via my program (i.ec which command with which parameters should I run)? The code part bellow is in child part after fork(). It executs the command. tokenized_command is std::vector
Technology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant DACREE MarkDeVries Inside-ERP MacProTX VoIP_News Inside-CRM maxwellarnold I_am_the_dragon PCMag Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker JoeTorre bracke Locutus Ramnath.Awate Craig Borysowich Dennis Stevenson DukeGanote Richard mircea_luca http://stackoverflow.com/questions/5638321/why-child-process-returns-exit-status-32512-in-unix Nikki Klein AbhaiTripathi knowscognosdoi Clinton Jones blrvenkat Iqbalyk bluesguyAZ59 COMPANIES Hewlett Packard Hitachi America, LTD Compuware Fiberlink Communications View All Topics View All Members View All Companies Toolbox for IT Topics Data Warehouse Groups Ask a New Question Informatica The Informatica group is your premier resource for objective technical discussion and peer-to-peer support on Informatica data integration software. Home http://datawarehouse.ittoolbox.com/groups/technical-functional/informatica-l/error-while-executing-unix-script-32512-as-post-session-command-1143235 | Invite Peers | More Data Warehouse Groups Your account is ready. You're now being signed in. Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. Error while executing unix script (32512) as post session command deeraj asked Aug 24, 2006 | Replies (1) Hi, The error is "Error executing shell command [/path/file.sh]. Return code is [32512]." The script is in turn calling another script inside and I think thats where the problem is lying. I tried executing the script directly in the unix box and its working fine. Can someone help on this? Hers's what the script
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 http://tex.stackexchange.com/questions/140906/error-32512-driver-return-code Business Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error 32512 exit code (driver return code) up vote 5 down vote favorite 2 I'm using XeTeX, Version 3.1415926-2.4-0.9998 I'm creating tex file using PHP and storing it on linux server. [ex: abc.tex] Then creating .sh file with command to execute *.tex file using xelatex [ex: abc.sh] sample content of abc.sh /usr/local/texlive/2012/bin/x86_64-linux/xelatex abc.tex If i execute abc.sh on linux command prompt, required PDF is getting generated. But, If i execute abc.sh from apache webserver via php , it's giving error as : error 32512 linux Error 32512 (driver return code) generating output; file abc.pdf may not be valid. [Note: There is NO PDF File generated] Can you please suggest any pointers to solve this? xetex errors pdftex texlive ubuntu share|improve this question asked Oct 27 '13 at 5:20 Pawan Mude 1,4591624 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote Finally it got executed. DANGER part is that, still I don't know reason. I suspect it may be due to some path issue. Instead of executing tex file using xelatex, i complied it with latex & then with dvips and finally converted PDF using ps2pdf NOTE: it's getting executed via webserver using PHP share|improve this answer answered Oct 27 '13 at 7:37 Pawan Mude 1,4591624 Can you show the exec(...) arguments for whole line of compilation? I have absolutely the same problem! –Ruben Kazumov Oct 28 '13 at 19:35 Hi Ruben, Basically I call shell script from exec('/bin/sh abc.sh'); and commands are written in this .sh file ; shell file will have latex , dvips & ps2pdf for compilation in sequence. –Pawan Mude Oct 29 '13 at 16:04 I did it by this two lines: tex.stackexchange.com/q/141221/27881 –Ruben Kazumov Oct 29 '13 at 16:24 add a comment| up vote 0 down vote Here is a working way to execute latex from PHP. The point