![.sh 파일에서 .csh로 데이터 또는 경로 전송](https://linux55.com/image/184222/.sh%20%ED%8C%8C%EC%9D%BC%EC%97%90%EC%84%9C%20.csh%EB%A1%9C%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EB%98%90%EB%8A%94%20%EA%B2%BD%EB%A1%9C%20%EC%A0%84%EC%86%A1.png)
.sh 파일에서 .csh 파일을 실행할 수 있습니다. .csh 파일 실행을 시작할 때 a.sh 파일의 경로를 b.csh 파일에 전달하고 싶습니다.
예를 들어:-
#a.sh
if(result=0) then
x=path/to/.csh
#I want to pass the path from here for "a"
#How can i do it?
a=/my/path/1
elif(result=1) then
x=path/to/.csh
a=/my/path/2
fi
#b.csh
set a=/path/to/add
답변1
둘 다 csh 스크립트 b.csh
이므로 a.sh
.source b.csh
그건 그렇고, 이름에도 불구하고 그것은 대본이 아니라 대본이라는 것을 알고 a.sh
계시죠 sh
... csh
?