–
Jan 23 Ernst Abbe born, 1840, formulated diffraction theory
Jan 23 Humphrey Bogart born in New York City, 1899
Jan 23 John Hancock born, 1737
Jan 23 Joseph Hewes born, 1730
Jan 23 Samuel Barber died, 1981
Jan 23 Feast of St. Ildefonsus
Jan 23 National Handwriting Day
This is what I was looking for but I can’t seem to be getting the
appropriate exit value anyway. I tried perl’s $? & 127 which didn’t give
it to me either:
min,out,err = Open3.popen3(“ls /nonexistantdir”);
p $? & 127
=> 0
[~]$ ls /nonexistantdir
ls: /nonexistantdir: No such file or directory
[~]$ echo $?
1
At Fri, 24 Jan 2003 03:09:01 +0900, > Daniel Bretoi wrote:
How do I get the exit status for this? I’m only getting stdout and
stderr for this.
$?
–
Nobu Nakada
–
Jan 23 Ernst Abbe born, 1840, formulated diffraction theory
Jan 23 Humphrey Bogart born in New York City, 1899
Jan 23 John Hancock born, 1737
Jan 23 Joseph Hewes born, 1730
Jan 23 Samuel Barber died, 1981
Jan 23 Feast of St. Ildefonsus
Jan 23 National Handwriting Day
At Fri, 24 Jan 2003 04:33:26 +0900, Daniel Bretoi wrote:
This is what I was looking for but I can’t seem to be getting the
appropriate exit value anyway. I tried perl’s $? & 127 which didn’t give
it to me either:
AFAIK, masking $? with 127 is to get the terminating signal.
To get child’s exit status, you should right-shift 8 bit. Or
in 1.7 lator, $? is an instance of Process::Status (unless
nil), and has #exitstatus method.
At Fri, 24 Jan 2003 04:33:26 +0900, > Daniel Bretoi wrote:
This is what I was looking for but I can’t seem to be getting the
appropriate exit value anyway. I tried perl’s $? & 127 which didn’t give
it to me either:
AFAIK, masking $? with 127 is to get the terminating signal.
To get child’s exit status, you should right-shift 8 bit. Or
in 1.7 lator, $? is an instance of Process::Status (unless
nil), and has #exitstatus method.
–
Nobu Nakada
–
Jan 23 Ernst Abbe born, 1840, formulated diffraction theory
Jan 23 Humphrey Bogart born in New York City, 1899
Jan 23 John Hancock born, 1737
Jan 23 Joseph Hewes born, 1730
Jan 23 Samuel Barber died, 1981
Jan 23 Feast of St. Ildefonsus
Jan 23 National Handwriting Day
Why am I not getting the right thing with popen3? I still need a way to
be able to access stderr, stdout and exit status. Can any one offer
alternatives?
At Fri, 24 Jan 2003 04:33:26 +0900, > Daniel Bretoi wrote:
This is what I was looking for but I can’t seem to be getting the
appropriate exit value anyway. I tried perl’s $? & 127 which didn’t give
it to me either:
AFAIK, masking $? with 127 is to get the terminating signal.
To get child’s exit status, you should right-shift 8 bit. Or
in 1.7 lator, $? is an instance of Process::Status (unless
nil), and has #exitstatus method.
–
Nobu Nakada
–
Jan 23 Ernst Abbe born, 1840, formulated diffraction theory
Jan 23 Humphrey Bogart born in New York City, 1899
Jan 23 John Hancock born, 1737
Jan 23 Joseph Hewes born, 1730
Jan 23 Samuel Barber died, 1981
Jan 23 Feast of St. Ildefonsus
Jan 23 National Handwriting Day
–
Jan 23 Ernst Abbe born, 1840, formulated diffraction theory
Jan 23 Humphrey Bogart born in New York City, 1899
Jan 23 John Hancock born, 1737
Jan 23 Joseph Hewes born, 1730
Jan 23 Samuel Barber died, 1981
Jan 23 Feast of St. Ildefonsus
Jan 23 National Handwriting Day
–
Jan 23 Ernst Abbe born, 1840, formulated diffraction theory
Jan 23 Humphrey Bogart born in New York City, 1899
Jan 23 John Hancock born, 1737
Jan 23 Joseph Hewes born, 1730
Jan 23 Samuel Barber died, 1981
Jan 23 Feast of St. Ildefonsus
Jan 23 National Handwriting Day
however, looking at the code for open3.rb it doesn’t seem possible to
capture the pid (infact, it seems to be completely discarded).
Sorry, I’ve forgotten that I’m using modified version of
open3.rb, due to get rid of that very problem.
–
Nobu Nakada
–
Jan 24 John Belushi is born in Chicago, 1949
Jan 25 Robert Burns born, 1759
Jan 25 Virginia Woolf born, 1882
Jan 25 W. Somerset Maugham born, 1874
Jan 24 DG Nova introduced, 1969
Jan 25 First U.S. meeting of ALGOL definition committee, 1958
Jan 26 EDVAC demonstrated, 1952
Jan 24 Eskimo Pie patented by Christian Nelson, 1922
Jan 24 Gold discovered in California at Sutter’s Mill, 1848
Jan 26 Sydney Aust. settled, 1788
Jan 24 Economic Liberation Day in Togo
Jan 26 Republic Day in India
Jan 26 Australia Day in Australia
Jan 24 Warren Zevon is born, 1947
Jan 25 Bob Dylan plays the second “Hurricane” benefit, in the Astrodome, 1978
Jan 26* Parashat Be-Shallah
Jan 26* Shabbat Shirah