0 like 0 dislike
1 view
in Bilgi Teknolojileri by anonymous Bilge (165k points)
reshown by anonymous
cygwin bash script içinde windows komutu ya da powershell komutu çalıştırmak

2 Answers

0 like 0 dislike
by anonymous Bilge (165k points)
/C opsiyonuyle aşağıdaki gibi kullanabilirsiniz.
> cmd.exe /C "lmutil lmstat -a" > abc.txt

>powershell.exe -File "c:\abc.ps1"
0 like 0 dislike
by anonymous Bilge (165k points)
#!/bin/bash

powershell.exe -File "C:\abc.ps1"

echo $(pwd)

find . -type f -print0 | xargs -0 dos2unixl

echo "License information file sent to web server!"

exit 1

#!/bin/bash

echo "dos2unix starting..."

dos2unix.exe -n a.txt a.txt

scp a.txt ah@1.1.1.1:/opt/lampp/htdocs/lics/a.txt

echo "Fixed..."

exit 1
...