[問題] 請問一下windows寫bat檔連linux下指令問題
請問各位一下
如果我在windows上寫一個bat檔
bat內容是
@echo off
putty.exe -ssh 140.xxx.xxx.xxx -l user -pw "ptt123" -m c:\linuxcmd.cmd
c:\linuxcmd.cmd內容是
sync
cd mix1/
./testBash.sh
但是上面不能執行./testBash.sh
(好像是這個錯 ./testBash.sh: line 2: mpdboot: command not found)
好像會直接跳過
還是因為裡面有使用平行的語法所以不能這樣用
testBash.sh內容是
#!/bin/bash
mpdboot -n 8 -f mpd2.hosts
mpiexec -n 8 ./ok_MPI_GME_PBF.o
請問各位大大有沒有辦法
讓我的平行程式可以藉著windows上的bat檔去呼叫執行
如果我在c:\linuxcmd.cmd中下底下這個指令就可以跑
./ok_MPI_GME_PBF.o
請問要怎麼樣我才能執行平行的語法呢?
麻煩會的大大幫忙一下
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.124.44.24
※ 編輯: smallma009 來自: 140.124.44.24 (02/27 16:15)