当前位置: 技术问答>linux和unix
sh文件执行问题
来源: 互联网 发布时间:2015-11-29
本文导语: 我的bkdata.sh文件内容为 exec java -cp bkdata_mysql.jar;mm.mysql-2.0.4-bin.jar Overcell& > log2.txt 在UNIX上输入sh bkdata.sh执行时出现如下提示,请问是不是sh内的格式不对,该怎么写呢,请问各高手 Usage: java [-options] class [args...]...
我的bkdata.sh文件内容为
exec java -cp bkdata_mysql.jar;mm.mysql-2.0.4-bin.jar Overcell& > log2.txt
在UNIX上输入sh bkdata.sh执行时出现如下提示,请问是不是sh内的格式不对,该怎么写呢,请问各高手
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-d32
use a 32-bit data model if available
-d64
use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath
set search path for application classes and resources
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:...|:]
-enableassertions[:...|:]
enable assertions
-da[:...|:]
-disableassertions[:...|:]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
exec java -cp bkdata_mysql.jar;mm.mysql-2.0.4-bin.jar Overcell& > log2.txt
在UNIX上输入sh bkdata.sh执行时出现如下提示,请问是不是sh内的格式不对,该怎么写呢,请问各高手
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-d32
use a 32-bit data model if available
-d64
use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath
set search path for application classes and resources
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:...|:]
-enableassertions[:...|:]
enable assertions
-da[:...|:]
-disableassertions[:...|:]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
|
-cp -classpath
说文件之间以:分割,你的命令行中显然以;作分隔符了。
说文件之间以:分割,你的命令行中显然以;作分隔符了。