V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
grindsgears
V2EX  ›  问与答

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

  •  
  •   grindsgears · 2011-01-18 18:06:23 +08:00 · 4405 次点击
    这是一个创建于 4846 天前的主题,其中的信息可能已经有所发展或是发生改变。
    @echo off

    mkdir newcerts
    mkdir certs
    mkdir crl

    del YuchBerrySvr.key

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

    pause
    2 条回复    1970-01-01 08:00:00 +08:00
    9hills
        1
    9hills  
       2011-01-18 21:40:35 +08:00
    #!/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…'
    napoleonu
        2
    napoleonu  
       2011-01-18 22:37:42 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5477 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:37 · PVG 09:37 · LAX 18:37 · JFK 21:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.