我正在创建一种系统,通过我的linux机器上的web接口复制文件。
我拥有的是bash脚本、php页面和html页面,它们向PHP页面发出AJAX请求。
下面是这个系统中数据流的一个例子。
HTML Page Form With AJAX -> PHP Script -> exec('./copy.sh '.$_REQUEST['folder'].' '.$_REQUEST['target'].'', $Output, $Result); echo end($Output); -> HTML Pa
在我的日常工作中,我使用TortoiseGit,并且我正在尝试编写一个结帐后钩子。我更喜欢在windows环境中工作,所以钩子文件所做的唯一事情就是调用标准的windows.bat文件:
#!/bin/sh
echo "The Git post-checkout Linux Shell-file has now started to execute"
cmd.exe "/c post-checkout.bat"
echo "The Git post-checkout Linux Shell-file has now finished executing&