|
|
|
|
|
|
|
[Original]
[Print]
[Top]
|
Hello All,
Currently we are using Sun OS for our production.
But now we are in the process of using SuSE Linux Enterprise Server 8 for our production.
I already exp/imp Oracle database to SuSE from Sun box.
Currently, every week on production we run menu.ksh script on the Sun Box. (See below)
I also imported this file to SLES 8. I gave same permission to this file as Sun Box.
I can do step 1 successfully from SuSE 8.
But when I do step 2 from below get the following error: See below the menu
#!/bin/ksh #/Scripts/Opers/menu.ksh #********************************************************************
# Wits Main Menu # #Start infinite loop . . . exit in Q/q stty erase ^H while : do export TERM=vt100 tput clear trap `echo " ..."` 2 3 cat <<++ * * * * * * * * * * * * * * * * Wits Interface Menu Hostname: `uname -n `
1 - Full Database Export 2 - Change Dates on .netrc File/Run "ftp ibm" 3 - Browse Dat Files Menu ............ ...........
Q - QUIT ++
Please enter your selection: 2
Do you want to change the dates in the .netrc file(yes/no)? yes Change dates on .netrc file Enter file date (mmdd): 0110 Enter user id: xxxxx Enter password: Do you want to run ftp ibm now(yes/no)? yes Run ftp ibm
ftp: Name or service not known ftp>
Please note:
Shell for the Sun Box dhs3 41: echo $SHELL /bin/csh
Shell for the SuSE Box:
oracle@dhshrwits:~> echo $SHELL /bin/bash
Any feed back will be appreciated.
Regards, Dawar
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
|
It looks like you are invoking the ftp command wrong in the script. Look at the part of the script where it does the ftp. It is probably refrencing the command wrong. It might be easier to just switch your shell to csh. Even though this script was written for a korn shell. i.e. the ksh extension.
|
|
|
[Original]
[Print]
[Top]
|
|
|