Solution for downloading files by using sh_get_nav in GAMIT in Ubuntu

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.