grindsgears
V2EX  ›  问与答

麻烦有没有超人帮我吧一个BAT改成shell脚本运行格式。多谢多谢

  •  
  •   grindsgears · Jan 18, 2011 · 4924 views
    This topic created in 5596 days ago, the information mentioned may be changed or developed.
    @echo off

    mkdir newcerts
    mkdir certs
    mkdir crl

    del YuchBerrySvr.key

    echo ------------hahaha------------
    keytool -genkey -alias serverkey -keystore YuchBerrySvr.key

    pause
    2 replies    1970-01-01 08:00:00 +08:00
    9hills
        1
    9hills  
       Jan 18, 2011
    #!/bin/bash

    function pause(){
    read -p “$*”
    }

    mkdir newcerts
    mkdir certs
    mkdir crl
    rm YuchBerrySvr.key

    echo ------------hahaha------------

    #这里就是你的那个keytool了。。没用过java,但具体命令格式linux下应该和windows下
    #是一样的,这个就只能你自己Google了,不属于bash脚本范畴了。。

    pause 'Press any key to continue…'
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2896 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 14:59 · PVG 22:59 · LAX 07:59 · JFK 10:59
    ♥ Do have faith in what you're doing.