How to solve the notfound problem using the script command

Source: Internet
Author: User
The solution to the notfound problem of the script command-Linux general technology-Linux programming and kernel information. The following is a detailed description. Scripts that can be run with bash/bin/sh cannot be run in dash/bin/sh ~ The error message "Syntax error: redirection unexpected" is displayed.

Ubuntu uses dash to replace the traditional bash

/Bin/sh->/bin/bash:/bin/sh->/bin/dash

Although the dash volume is relatively small, it is faster to start up.

However, some scripts that can be used normally in the bash environment are used after the instance is started.

After changing to dash, some inexplicable problems may occur.

It is a very annoying thing for people who want to develop programs on Ubuntu.

The temporary solution is to set/bin/sh->/bin/bash

In order to speed up the boot, the problem occurs elsewhere.

Changing the tradition will certainly cause problems.

Try to solve the problem again

Try
Sudo dpkg-reconfigure dash

Run the following command to check whether the settings are correct:
Ls-l/bin/sh

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.