|
|
Return-Code of "system" on a 64-bit system
Hi,
I use these statements under Perl 5.6.x on SuSE Linux 7.2 (32-bit
system) and under Perl 5.8.x on Suse Linux Enterprise Server 9
(64-bit-system):
my $rc=system("ps -p 4711");
if ($rc==0)
{
# do this
}
else
{
# do that
}
If process "4711" is running, $rc contains "0" under Suse 7.2 (32-bit),
but it contains "-1" under Suse 9 (64-bit).
Why?
Thank you...
Many greetings from Hannover, Germany
|
|
0
|
|
|
|
Reply
|
ulrich.knaack (1)
|
12/18/2005 12:35:55 AM |
|
Moin Ulli,
la 18.12.2005 01:35 Sergeant_Pepper skribis:
> I use these statements under Perl 5.6.x on SuSE Linux 7.2 (32-bit
> system) and under Perl 5.8.x on Suse Linux Enterprise Server 9
> (64-bit-system):
>
> my $rc=system("ps -p 4711");
> if ($rc==0)
> {
> # do this
> }
> else
> {
> # do that
> }
>
> If process "4711" is running, $rc contains "0" under Suse 7.2 (32-bit),
> but it contains "-1" under Suse 9 (64-bit).
Nö, -1 bedeutet, daß der Befehl nicht gestartet werden konnte (z.B. kaputter
$PATH, oder keine Ausführungsrechte).
coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer
--
lerne / learn / apprends / lär dig / ucz siÄ™ Esperanto:
http://lernu.net / http://ikurso.net
|
|
0
|
|
|
|
Reply
|
Daniel
|
12/18/2005 10:51:04 PM
|
|
Hi, Daniel,
thanks for answering.
I knew the meaning of "-1" (error starting process), but that's not the
solution. I checked this aspect...
Greetings
|
|
0
|
|
|
|
Reply
|
Sergeant_Pepper
|
12/19/2005 8:08:10 AM
|
|
|
2 Replies
302 Views
(page loaded in 0.088 seconds)
Similiar Articles: Return-Code of "system" on a 64-bit system - comp.lang.perl.misc ...Hi, I use these statements under Perl 5.6.x on SuSE Linux 7.2 (32-bit system) and under Perl 5.8.x on Suse Linux Enterprise Server 9 (64-bit-system):... Writing Assembly Code in x64 - comp.lang.asm.x86Return-Code of "system" on a 64-bit system - comp.lang.perl.misc ... Writing Assembly Code in x64 - comp.lang.asm.x86 setjmp(b); // return to C code in main(): longjmp(b2 ... How to port 32 bit unsigned char* to 64 bit - comp.lang.c++ ...Return-Code of "system" on a 64-bit system - comp.lang.perl.misc ... Problem in porting from 32 bit to 64 bit application - comp.os.ms ... keybd ... mex on 64 bits mac os 10.6.3 - comp.soft-sys.matlabReturn-Code of "system" on a 64-bit system - comp.lang.perl.misc ... mex on 64 bits mac os 10.6.3 - comp.soft-sys.matlab System: MacOS X V 10.6.5 Snow Leopard (64-bit ... Problem in porting from 32 bit to 64 bit application - comp.os.ms ...The 'strlen' function is defined to return a 'size_t'. ... Porting Linux applications to 64-bit systems Many developers ... Bit Code to 64-Bit Code Porting 32-Bit Code to 64-Bit Code ... Anyone interested in x86-64 assembly? - comp.lang.asm.x86 ...If Bochs is able to run 64-bit systems yet, that is. VMware probably can ... Return-Code of "system" on a 64-bit system - comp.lang.perl.misc ... Anyone interested in x86-64 ... c99 uint32_t (etc.) corresponding portable printf format ...... uint64_t etc., and that provides a way to write code ... 32 bit platform, but %lu could be 8 bytes on a 64 bit ... It isn't in the fprintf page on my Linux systems. Difference between MATLAB 64-bit and 32-bit - comp.soft-sys.matlab ...> Hi Matt, > > Could you provide some code snippets that illustrate the ... I have seen this on my own systems. I have 32-bit and 64-bit 2007a running on two different ... 64bit linux, mex, Fortran, and -largeArrayDims - comp.soft-sys ...Hey all, I have a problem running on a 64bit Linux system: Linux 2.6.26-2-amd64 #1 SMP Tue Mar 9 22:29:32 UTC 2010 x86_64 GNU/Linux Matlab is ... Wrong libgcc_s using gcc -m64 on Solaris X86 - comp.unix.solaris ...I'm trying to build a 64-bit shared library using gcc 3.4.3 on a Solaris 10 x86 system. For example: /* testlib.c */ int foo() { return 0; } ... Return-Code of "system" on a 64-bit system - comp.lang.perl.misc ...Hi, I use these statements under Perl 5.6.x on SuSE Linux 7.2 (32-bit system) and under Perl 5.8.x on Suse Linux Enterprise Server 9 (64-bit-system):... Loadstate error running 32-Bit process on a 64-Bit system is not ...... check failure; please check the logs for details LoadState return code: 36 ... tried to run the loadstate from the x86 USMT4 share on a Win7 64-bit system it ... 7/23/2012 7:29:19 PM
|
|
|
|
|
|
|
|
|