Home > Code 256 > Helper Program Returned Error Code 256

Helper Program Returned Error Code 256

Tutorials Poetry RecentThreads NewestNodes Donate What'sNew on Apr 11, 2007 at 18:40UTC ( #609440=perlquestion: print w/replies, xml ) Need Help?? mantra2006 has asked for the wisdom of the Perl Monks exit code 256 in unix concerning the following question: Hello Monks

I am using

Perl System Return Code 256

an SCP command to send a file to UK server. Its working
on the command prompt exit code 256 in informatica giving return code "0" where as
when I run through scheduler it returns me "256" as return
but the file successfully got scp'ed
...any ideas...my code is below not

C++ System Return Code 256

enitre code just SCP my $scpcp = "scp $rfilewithpath $destdir"; my $ret = system("$scpcp"); print STDERR "scp return code is $ret\n"; [download] Thanks & Regards Sridhar Comment on SCP return code 256Download Code Replies are listed 'Best First'. Re: SCP return code 256 by samtregar (Abbot) on Apr 11, 2007 at 18:48UTC To get the exit scp error code 256 code from system() you must decode $?. From perldoc -f system: 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; } [download] In your case that means scp returned with exit code 1. According to the scp manpage that means it encountered an error, although it doesn't tell you what kind. -sam [reply][d/l][select] Re: SCP return code 256 by Krambambuli (Curate) on Apr 11, 2007 at 19:29UTC Try maybe my $scpcp = "scp -v $rfilewithpath $destdir"; ... [download] to get some debugging help and check STDOUT and STDERR afterwards. (You run this on a Unix or on a Windows platform ?...) What exactly do you mean by saying "... when I run through scheduler..." ? Might be that you already have the debugging info somewhere, just

Access info Browse Statistics http://gforge.opensource-sw.net/gf/project/efw-devel/scmsvn/?action=browse&path=%2Fvendor%2Fendian%2Fefw-syslog%2Fsrc%2Fefw-syslog%2Fsrc%2Fcgi-bin%2Flogs_config.cgi&sortby=log&view=markup SVN Reference Home » Projects » Endian Firewall Developer Environment » SVN » Browse repository ViewVC Exception An Exception Has Occurred An illegal parameter name ("path") was passed. HTTP Response Status 400 Bad Request Advertisements Advertisements

returned error code 256 From: Will Aoki https://lists.debian.org/debian-printing/2010/05/msg00055.html Date: Fri, 21 May 2010 14:19:00 http://osdir.com/ml/debian-bugs-dist/2009-09/msg09513.html -0600 Message-id: <[email protected]> Reply-to: Will Aoki , [email protected] Package: cups Version: 1.4.3-1 Severity: important Justification: fails to build from source On a lenny system with the various build-depends installed code 256 (having re-compiled them for lenny), cups fails to build with the following: [...] dh_makeshlibs -plibcups2 dpkg-gensymbols: warning: some new symbols appeared in the symbols file: see diff output below dpkg-gensymbols: warning: some symbols disappeared in return code 256 the symbols file: see diff output below dpkg-gensymbols: warning: debian/libcups2/DEBIAN/symbols doesn't match completely debian/libcups2.symbols --- dpkg-gensymbolsxUWtMm 2010-05-20 17:24:14.198617315 -0600 +++ dpkg-gensymbols4iipRb 2010-05-20 17:24:14.230617556 -0600 @@ -1,75 +1,146 @@ libcups.so.2 libcups2 #MINVER# - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)[email protected] 1.4.0 - (optional)_cupsSNMPD

Text Data Thread at a glance: Previous Message by Date: Bug#548950: dh-make-perl: Should check if "sample" is really a directory Package: dh-make-perl Version: 0.47 Severity: normal When trying to build Devel::Trace: $ dh-make-perl --build --cpan Devel::Trace [...] Found: Devel-Trace 0.10 (libdevel-trace-perl arch=all) [...] Found examples: sample/* dh_installexamples sample/* cp: cannot stat `sample/*': Not a directory dh_installexamples: command returned error code 256 make: *** [binary-indep] Error 1 make: Leaving directory `/tmp/Devel-Trace-0.10' Cannot create deb package Looking into the distribution I see a sample file, not a directory: -rwxr-xr-x 1 eserte eserte 206 1998-07-19 02:20 sample So I guess there is a "-d" check missing in the code. Regards, Slaven -- System Information: Debian Release: 5.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages dh-make-perl depends on: ii debhelper 7.0.15 helper programs for debian/rules ii dpkg-dev 1.14.25 Debian package development tools ii fakeroot 1.11 Gives a fake root environment ii libemail-date-format-per 1.002-1 Module to generate RFC-2822-valid ii libmodule-depends-perl 0.14-1 identify the dependencies of a dis ii libwww-mechanize-perl 1.34-2 Automate interaction with websites ii libyaml-perl 0.66-1 YAML Ain't Markup Language (tm) ii make 3.81-5 The GNU version of the "make" util ii perl 5.10.0-19lenny2 Larry Wall's Practical Extraction ii perl-modules [libpod-par 5.10.0-19lenny2 Core Perl modules Versions of packages dh-make-perl recommends: ii apt-file 2.1.5 APT package searching utility -- c ii perl-modules [libmodule- 5.10.0-19lenny2 Core Perl modules dh-make-perl suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Next Message by Date: Bug#548948: Do not generate string for "separator" in translation template Package: gtkterm Version: 0.99.5-1 Priority: wishlist Tags: l10n patch remove-separator-strings.patch Description: Text Data Previous Message by Thread: Bug#548950: dh-make-perl: Should check if "sample" is really a directory Package: dh-make-perl Version: 0.47 Severity: normal When trying to build Devel::

 
No related pages.