martinfortmann
Programmer
Hi
We are moving from an old HPUX box to a new AIX box and are having a few problems with standard UNIX utilities on the AIX box.
Firstly telnet.
We have a script with the following code
telnet $Host 80 <<-EOF > $WebPageFile 2>$TelnetError
GET
EOF
The result in $WebPageFile is:
Trying...
Connected to 10.13.200.33.
Escape character is '^]'.
Connection closed.
What is expected is:
Trying...
Connected to 10.13.200.33.
Escape character is '^]'.
get HTTP/1.0 401 access denied
Basic realm="WebIntelligence (14:00:52 Mar 26 2003)"
Set-Cookie: WebIntelligenceSession=EN572529E4QT17; path=/wi
status: 401
Content-Length: 115
<HTML><HEADER><TITLE>WebIntelligence</TITLE></HEADER><BODY onLoad='location="/wi/";' bgcolor=white>
</BODY></HTML>Connection closed.
Why will the output not appear. The problem is repeatable from the command line. However, if I enter telnet $Host 80 at the prompt and then manually enter the Get command, the result is as expected. Any suggestions, please.
The other problem was with "time" but I suspect this may be a problem with other commands. What I was trying to do is send the output of "time" to a file, eg.
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>time ls 2> myfile
avg_mem.sql free_space.sql longprog.sql sgachk.sql tr_r_f_update.sql
bindvals.sql hitratio.sql mincache.sql sqlcache.sql utlxplan.sql
buffercache.sql index_extents.sql monses.sql sw.sql what_sql.sql
cleanplan.sql indx.sql myfile sw2.sql xplain.sql
delplan.sql iobottle.sql no_space.sql tblsps.sql
disk_read.sql lock1.sql plsql_cache.sql test.sql
expplan.sql lock_user.sql readplan1.sql tmp.sql
real 0m0.01s
user 0m0.00s
sys 0m0.00s
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>cat myfile
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>
As you can see, myfile is empty while the "time" output is on the screen. If, however, I enter the full path to "time" the result is as expected
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>/usr/bin/time ls 2> myfile
avg_mem.sql free_space.sql longprog.sql sgachk.sql tr_r_f_update.sql
bindvals.sql hitratio.sql mincache.sql sqlcache.sql utlxplan.sql
buffercache.sql index_extents.sql monses.sql sw.sql what_sql.sql
cleanplan.sql indx.sql myfile sw2.sql xplain.sql
delplan.sql iobottle.sql no_space.sql tblsps.sql
disk_read.sql lock1.sql plsql_cache.sql test.sql
expplan.sql lock_user.sql readplan1.sql tmp.sql
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>cat myfile
Real 0.00
User 0.00
System 0.00
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>
Has anyone come across these problems and how did you over come them?
Many thanks
Martin
We are moving from an old HPUX box to a new AIX box and are having a few problems with standard UNIX utilities on the AIX box.
Firstly telnet.
We have a script with the following code
telnet $Host 80 <<-EOF > $WebPageFile 2>$TelnetError
GET
EOF
The result in $WebPageFile is:
Trying...
Connected to 10.13.200.33.
Escape character is '^]'.
Connection closed.
What is expected is:
Trying...
Connected to 10.13.200.33.
Escape character is '^]'.
get HTTP/1.0 401 access denied
Basic realm="WebIntelligence (14:00:52 Mar 26 2003)"
Set-Cookie: WebIntelligenceSession=EN572529E4QT17; path=/wi
status: 401
Content-Length: 115
<HTML><HEADER><TITLE>WebIntelligence</TITLE></HEADER><BODY onLoad='location="/wi/";' bgcolor=white>
</BODY></HTML>Connection closed.
Why will the output not appear. The problem is repeatable from the command line. However, if I enter telnet $Host 80 at the prompt and then manually enter the Get command, the result is as expected. Any suggestions, please.
The other problem was with "time" but I suspect this may be a problem with other commands. What I was trying to do is send the output of "time" to a file, eg.
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>time ls 2> myfile
avg_mem.sql free_space.sql longprog.sql sgachk.sql tr_r_f_update.sql
bindvals.sql hitratio.sql mincache.sql sqlcache.sql utlxplan.sql
buffercache.sql index_extents.sql monses.sql sw.sql what_sql.sql
cleanplan.sql indx.sql myfile sw2.sql xplain.sql
delplan.sql iobottle.sql no_space.sql tblsps.sql
disk_read.sql lock1.sql plsql_cache.sql test.sql
expplan.sql lock_user.sql readplan1.sql tmp.sql
real 0m0.01s
user 0m0.00s
sys 0m0.00s
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>cat myfile
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>
As you can see, myfile is empty while the "time" output is on the screen. If, however, I enter the full path to "time" the result is as expected
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>/usr/bin/time ls 2> myfile
avg_mem.sql free_space.sql longprog.sql sgachk.sql tr_r_f_update.sql
bindvals.sql hitratio.sql mincache.sql sqlcache.sql utlxplan.sql
buffercache.sql index_extents.sql monses.sql sw.sql what_sql.sql
cleanplan.sql indx.sql myfile sw2.sql xplain.sql
delplan.sql iobottle.sql no_space.sql tblsps.sql
disk_read.sql lock1.sql plsql_cache.sql test.sql
expplan.sql lock_user.sql readplan1.sql tmp.sql
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>cat myfile
Real 0.00
User 0.00
System 0.00
[dmld01@amppsdmd1]DRIDMSPT:/home/dmld01/debug>
Has anyone come across these problems and how did you over come them?
Many thanks
Martin