Many people in Ubuntu use gamit to download the corresponding calendar or observation file will encounter the following problem: sh_get_nav-archivesopac-yr1998-doy235-ndays1 using the above command to download the file, appear: if: ExpressionSyntax. informationextractedfromftp_info ############################
Many users may encounter the following problems when using gamit in Ubuntu to download corresponding calendars or observation files:
Sh_get_nav-archive sopac-yr 1998-doy 235-ndays 1
Use the preceding command to download the file:
If: Expression Syntax.
Information extracted from ftp_info
########################################
Ftpsite: Undefined variable.
The problem is that "ftp address: no defined variable", which means passwd in your ftp_info is not set. gamit cannot read identified variables when using the sh_get_nav command.
GAMIT reading: Http://www.linuxidc.com/GAMIT/
What format does passwd in ftp_info need to be set? There is a sh_get_ftp_info file in the com Directory, which is used to read the ftp_info file (~ Gg/tables/ftp_info), The sh_get_ftp_info file defines the domain name information of your computer:
# Set domain = 'grep-w domain/etc/resolv. conf | awk '{print $2 }''
# If ($ domain = '') set domain = 'grep-w search/etc/resolv. conf | awk '{print $2 }''
Set domain =''
Set anon_email = 'whoam''' @ ''hostname | \ awk-F. '{print $1} '''. ''' echo $ domain'
For convenience, I addedSet domain = '': set the domain name to null.Anon_email = "username @ host name .".
The user name is the name of the system you log on to. Most people can use root, and modify the host name in the/etc/hostname file.
Finally, put your anon_email in the ftp_info file: sopac password username @ host name.
After the settings are complete, you can download the calendar file.