itop-Development Board-MINILINUX-C program Call Shell command

Source: Internet
Author: User
Tags call shell

This document describes the lab steps for invoking shell commands in a Linux system environment, and the document compression package LINUX-C
From the "itop-Development Board-minilinux-shell_v1.0.zip" is the C program source code.
The shell of the Linux system is the shell of the operating system, providing the user with an interface to use the operating system. It's the command language.
and programming languages, which explain the commands entered by the user and send them to the kernel.
As shown, unzip the "itop-Development Board-minilinux-shell_v1.0.zip" and will unzip the file within the
SHELLLS.C Use the SSH software to copy to Ubuntu, and then open the directory.

Use the command "VI shellls.c" to open the "shellls.c" file, as shown in.

As shown, we can modify the command to the 17th line of the "Popen" function, where the "ls" command is
example, save exit.

As shown, use the command "Arm-none-linux-gnueabi-gcc-4.4.1-o shellls SHELLLS.C-
Static "Compile shellls.c, as shown, using the command" LS "You can see that the Shellls executable file was generated.

Copy the "Shellls" to the USB stick directory, then launch the Development Board, insert the USB stick, refer to the I-MX6 Development Board for use
Manual 11th 11.3.3.1, use the command "Mount/dev/udisk/mnu/disk" to mount the USB drive, as
Shown

As shown, we use the command "./mnt/disk/shellls" in any directory (as the root directory).
View the files that are contained in the current directory.

Beijing Xun Electronics Co., Ltd. is committed to embedded software and hardware design, is a high-end development platform and mobile device solutions to provide
Based on years of technical accumulation, in the industrial, instrumentation, education, medical, automotive and other fields through the OEM/ODM method for
Customers to create value.

This document will be continuously updated and published in many ways to new and old users, hope that the efforts of the electronic will give you the learning
and development to help.

itop-Development Board-MINILINUX-C program Call Shell command

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.