Unless you have recently installed third-party software that is of interest to developers, you are likely to be advised to install it directly from the network using the following command.?
1
curl-shttp://example.com/install.sh|sh
This article is not intended to discuss the good or bad of this approach, but to remind those who use this method, which, in addition to the obvious drawbacks, has another downside: to directl
In ubuntu,/bin/sh points to/bin/sh in ubuntu. by default, it is dash. using ll/bin/sh, we can see that sh is a link to dash, sometimes it may cause problems when using bash scripts. If this problem occurs, point sh to bash. Ln: ln-s/bi...
In ubuntu,/bin/
I had a problem learning Linux today.
#!/bin/sh
# test.sh
username= ' HCBBT '
echo ' My name is ${username}. Call me ${username:0:1}-chan. "
This script runs directly to the Times wrong:/test.sh:5:./test.sh:bad substitution.Toss, found that the first line of the interpreter changed to/bin/bash is no problem.
So I checked the difference between/bin/sh and/bin/bash, using: Intercept the string is not POSI
Back up the code uploaded by svn in Ubuntu and name the backup file svn_backup + current time. dump File (for example, svn_backup20100525.dump) 1. write a script file (backup. sh) sudotouchbackup. sh create a script file and edit the file sudovimbackup. sh is the content of the configuration file. The Code is as follows :#! /Bin/shsudosvnadmin
Back up the svn up
A medium-level Linux user must always execute the. sh file. Of course, you can double-click the file under the graphic interface, but it is a waste of time.Now we will introduce the first method: (In ubuntu)First, open a terminal.Enter sudo suThen enter the password. In this way, the root user permission is obtained.Then find the file (use commands in the terminal, of course, you can choose not to open a file manager .)Execute./
Tag: Run enter to toggle its dash Linu ECIF spec systemUbuntu Toggle default sh for bash or dash1 bash and DashStarting with Ubuntu 6.10, the default is to use Dash (Thedebian almquist shell) instead of bash (the Gnubourne-again shell).But the login shell is bash. The reason is that dash is faster and more efficient, and it complies with the POSIX specification. Ubuntu runs a lot of shell scripts when it starts up, and using dash can speed up startup.
DX provides a set of basic functions used to operate sphereical harmonic, such as d3dshadd, d3dshdot, and d3dshevaldirection. One of them is d3dshprojectcubemap, which is used to obtain the sh coefficient from cubemap projection, it is quite useful. Generally, different sampling points need to be set when light probe is used in the game scenario, and then the corresponding probe is generated and the sh coef
When bash executes a program, it only looks for it from the path. If the program is not in the path, the specific path must be provided ,. /run. the dot before sh indicates the current directory.
Several forms of bash calling programs:
1. In Path, directly call: Run. Sh
2. if the path is not in the path, the complete path:/tmp/run. Sh is provided.
3. If it is no
I. Problem Description
Installation environment: Oracle Linux 6.1
Database: 10.2.0.1
When Oracle 10g RAC is installed, an error is reported when root. Sh is executed on the first node, as shown below:
[Root @ Rac1 ~] #/U01/APP/10.2.0/GRID/root. Sh
Warning: directory '/u01/APP/10.2.0' is notowned by root
Warning: directory '/u01/app' is not ownedby Root
Warning: directory '/u01' is not owned byroot
Checki
Introduction of the. sh file. SH is a Linux script file, and we can execute some commands through . SH , which can be understood as a. bat batch file for Windows.Second, point command (.)The . Command and source are the same command, which can be understood as the abbreviation for source , the abbreviation Point command .Iii.
Do you remember the writing of the previous Android Mk file? Portal ,We need to manually add CPP files, if more than one CPP, it is not to be exhausted?Local_path: = $ (call My-dir) include $ (clear_vars) Local_module: = Cocos2dcpp_sharedlocal_module_filename: = Libcocos2dcpplocal_src_files: = Hellocpp/main.cpp. /.. /classes/appdelegate.cpp. /.. /classes/clipingnodelayer.cpp. /.. /classes/mainscene.cpp. /..
Transferred from: http://m.blog.csdn.net/blog/oHanTanYanYing/39855829This article is about how CPP files call Cuda. cu files for graphics acceleration related programming. Of course, this is done in the case where Cuda is already configured by default, and if you have questions about how to configure Cuda, you can read this article before. In addition, now Cuda has released the support VS2013 version 6.5, so it is recommended to use the latest, after
HPP, which is equal. H plus. CPP is frequently used in open-source libraries such as boost and xerces. By coincidence, I learned a half-way method and recorded it as follows for reference.
The essence of HPP is to implement. cpp.
Code In the. h header file, the definition and implementation are included in the same file, then the caller of this class only needs to include the HPP file, no need
Add
1. First write the template file and store it in one place. For example, I am "E: \ mb. cpp ";
2. Open the Registry (Regedit) and find [hkey_classes_root]-> [. cpp] (if not, create your own project. cpp );
3. Create a new item [shellnew] under [. cpp] (delete and recreate the item if it already exists );
4. Create a
Today, I wrote a file about the implementation of the Comtrade (transient data event Interchange Format) standard to another vs project, put all your source files under the new Comtrade folder of another vs2008 project.
Unexpectedly, an error is prompted during compilation:
Library problems during connection: unresolved error:... (the one that is often encountered during library compilation is generally missing a library file)
But why. Take a closer look at the original, there is a utility un
, first in the Configuration Manager, the platform changed to X64, because when the change here, all the following settings will be restored by default. All best to set here first.3, Project Properties--Configuration Properties--VC + + directory--Include directory--add $ (halconroot) \include;$ (halconroot) \include\halconcpp;4, Project Properties--Configuration Properties--VC + + Directory--Library directory--add $ (halconroot) \lib\$ (Halconarch);(Figure Ibid.)5, Project Properties--Configurat
When writing a script in Ubuntu, an error such as a piece may occur occasionally, probably because the sh Command Used in Ubuntu uses dsh instead of bash1. When using this script, such as shsh06.sh, errors may occur, so no errors will occur when bashsh06.sh is used. 2. You can also add the running permission to the script and use it directly. /sh06.
/bin/shwith /bin/bash the distinction, the : intercept string is not POSIX standard.Difference
shGeneral set bash of soft chains (symlink)[plain] view plain copy print?
Ls-l/bin/sh
lrwxrwxrwx 1 root root 4 Sep 04:45/bin/sh, Dash
In a generic Linux system (exceptions FreeBSD , OpenBSD etc.), using sh the call execution script
Respect for the original works, Ming: This post for the excellent post integration
One, meaning
#!/bin/sh refers to this script using/bin/sh to interpret execution, #! is a special notation, followed by the path to the shell that interprets the script.
In fact, the first sentence of the #! is the Interpreter program path to the script, the content of the script is interpreted by the interpreter, we can use
following code will be problematic, the output is garbageint Main (void) { printf ("%d", sum (5 )); return 0 ;} int sum (intintint a) { return (a+b+c);}Output Result:[Email protected]:~/myprog/geeks4geeks/cpp$./A. out 1954607895[email protected]:~/myprog/geeks4geeks/cpp$./A. out 1943297623[email protected]:~/myprog/geeks4geeks/cpp$./A. out-16827881[em
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.