Error Code 65280 Perl
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings exit code 65280 linux and policies of this site About Us Learn more about Stack Overflow
Exit Code 65280 In Unix
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation exit code 65280 in informatica 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 each other. Join them; it
Error Code 65280 In Unix
only takes a minute: Sign up Perl system() call failed with return code 65280 up vote 2 down vote favorite I the code below, I can run $retCode = ClearCase($cmd); with no error, but return 65280 when run this: $retCode = ClearCase($logcmd); I tried on XP and Windows 2003 server, same result, all with ActiveState Perl v5.14.2. This code was error code 65280 in informatica working 2 years ago somewhere else. Thanks Jirong $g_HPPC_DEV_DRIVE = "M"; $g_HPPC_DEV_VIEW = "bldforge_AOMS_DEV"; $g_logfile = "logfile.txt"; $cmd = "startview $g_HPPC_DEV_VIEW"; $logcmd = $cmd . " >> $g_logfile 2>>&1"; $targetDir = $g_HPPC_DEV_DRIVE . ":\\" . $g_HPPC_DEV_VIEW; print "\$targetDir = $targetDir\n"; print "Starting view .......\n"; #$retCode = system("cleartool startview bldforge_AOMS_DEV >> logfile.txt"); #$retCode = `cleartool startview bldforge_AOMS_DEV`; $retCode = ClearCase($logcmd); #$retCode = ClearCase($cmd); sub ClearCase { my $retCode = 0; my $args = $_[0]; my $cmd = "cleartool " . $args; $retCode = Execute($cmd); return $retCode; } sub Execute { my $retCode = 0; my $cmd = $_[0]; if ($g_HPPC_BUILD_SIMULATION ne "Y") { print("Execute() Running...: $cmd\n"); $retCode = system($cmd); #$retOut = `$cmd`; #$retCode = $?; #print("Command execute output: $retOut\n"); } else { print("Execute() *** SIMULATION: $cmd\n"); } print("Execute() retCode = $retCode, $cmd\n"); return $retCode; } windows perl clearcase cleartool share|improve this question edited Aug 16 '12 at 17:24 DavidO 11.2k32651 asked Aug 16 '12 at 14:20 user1288329 4016 You should use autodie or check $! to see if you get anything more descriptive. Probably, though, "clearcase" is broke
piped command with file pathnames etc. This is called using system() but it always fails with exit code 65280 and the warning, "Can't init outfile 'my_outfile'". However, when I run
Sftp Error Code 65280
the same command from the shell everything is fine and the file
65280 Cpt
is written. The destination is writable by all. There don't seem to be any permissions problems. What 65280 color am I missing? The error message isn't a Perl error - it's coming from the tools you're calling. Without seeing your code it's difficult to do more than guess, http://stackoverflow.com/questions/11989196/perl-system-call-failed-with-return-code-65280 but one thing I would do is double-check the value of $convert_command, to make absolutely certain it's right. With Perl and shells interpolating variables into strings, and sharing many of the same escape sequences in quoted string constants, that's an easy place for bugs to sneak in. Also, the return value from system() isn't just the return value http://coding.derkeiler.com/Archive/Perl/comp.lang.perl.misc/2007-11/msg01144.html of the called command; it's that, plus some other stuff. You need to jump through a few hoops to get the actual exit status, as shown in "perldoc -f system": You can check all the failure possibilities by inspecting $? like this: if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "child exited with value %d\n", $? >> 8; } Once you get the real exit code from the tool you're calling, then you can find the meaning of that code (and the accompanying "Can't init" message) in the tool's docs. sherm-- -- WV News, Blogging, and Discussion: http://wv-www.com Cocoa programming in Perl: http://camelbones.sourceforge.net . Follow-Ups: Re: Failed with exit code 65280. From: lbo_user References: Failed with exit code 65280. From: lbo_user Prev by Date: Re: Google bad, Yahoo good Next by Date: Re: Google bad, Yahoo good Previous by thread: Re: Failed
New? Today's Posts FAQ Rules Guidelines Search Advanced Search Forum :: Server side development Perl/ CGI "system" call fails in perl http://www.codingforums.com/perl-cgi/69624-system-call-fails-perl-cgi-script-error-code-65280-a.html CGI script - error code 65280 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register http://billauer.co.il/blog/2013/03/fork-wait-and-the-return-values-in-perl-in-different-scenarios/ before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Enjoy an code 65280 ad free experience by logging in. Not a member yet? Register. Results 1 to 7 of 7 Thread: "system" call fails in perl CGI script - error code 65280 Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible 10-05-2005,08:44 PM #1 aquilon View Profile View Forum error code 65280 Posts New to the CF scene Join Date Oct 2005 Posts 3 Thanks 0 Thanked 0 Times in 0 Posts "system" call fails in perl CGI script - error code 65280 It is the first time I am trying to use a Perl "system" call in a CGI script. The script is running on Windows XP. Here's the fragment of the code: sub errout { my $msg = $_[0]; print "Content-type: text/html\n\n"; print "
\n"; print "Error: " . $msg . "\n"; print ""; } ... my $indir = '\Contracts\FieldData'; unless(chdir $indir) { errout("Cannot cd to $indir: $!"); exit; } my @comargs = ('COPY', '3617_CROSS_BEND_RD_PLANO.txt', '\Contracts\ContractFiles\test.txt'); system(@comargs) == 0 or errout("system @comargs failed: $?:$!"); When I run that script in a browser I receive the following error: Error: system COPY 3617_CROSS_BEND_RD_PLANO.txt \Contracts\ContractFiles\test.txt failed: 65280:No such file or directory Of course, all folders and the file to copy do exist, and the "copy" command works fine in the command prompt window. I looked for answers on the Net, but unfortunately didn't find any explanations. BTto a Linux machine: Making it easy Download a Linux distribution for Xilinx' Microblaze Embedded PC talking with an FPGA: Make it simple List of FPGA boards and IP cores with PCIe/USB and their vendors "FPGA-printf": When Chipscope isn't fast or deep enough Linux on Microblaze HOWTO (part I) Command-line (bash/GIMP) mass conversion and processing CSS and DIV layout: The main pitfalls Latest Posts Using exiftool to manually create a Google Map / Waze link from a JPG's GPS position My golden Makefile for compiling single-file C programs PCIe over fiber optics notes (using SFP+) Vivado's component.xml: IP-XACT dissection jots Using a shell account as a manual sendmail relay Using cgroups to force RAM swapping for implementing an Arria 10 design Fedora 12: Displaying Emojis in Firefox / Chrome Where to find "Recent Documents" in Fedora 12 Pairing a mobile phone with VW RCD 510 / Kufatec Fiscon car radio Gigabit tranceivers on FPGA: Selected topics Archives August 2016 July 2016 June 2016 May 2016 April 2016 March 2016 February 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 January 2015 December 2014 November 2014 October 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 April 2012 March 2012 February 2012 December 2011 November 2011 October 2011 September 2011 August 2011 July 2011 June 2011 May 2011 April 2011 March 2011 February 2011 January 2011 December 2010 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 April 2010 March 2010 February 2010 January 2010 December 2009 October 2009 September 2009 July 2009 May 2009 April 2009 March 2009 February 2009 fork(), wait(), timeout and the return codes in Perl This post was written by eli on March 25, 2013 Posted Under: Linux,perl The mission What I really needed was a proper timeout for a certain chunk of Perl code. There is alarm() of course, but one has to watch out with certain commands that cancel it (sleep() and other less expected functions). The script also uses "system()" to run processes outside the native Perl domain, so getting a bulletproof timeout mechanism with alarm() seems even less feasible. The chosen solution was to fork(), and let