새 터미널이 자동으로 닫히는 이유는 무엇입니까?

새 터미널이 자동으로 닫히는 이유는 무엇입니까?

새 터미널을 열 때마다 자동으로 닫힙니다. 저는 Arch Linux와 Xforce4 터미널을 실행하고 있습니다.

$ terminal --execute sudo arpspoof -i $(cat var.log|awk '{print $1}') \
           -t $(cat var.log|awk '{print $4}') $(cat var.log|awk '{print $3}')

또는

# terminal --execute arpspoof -i $(cat var.log|awk '{print $1}') \
           -t $(cat var.log|awk '{print $4}') $(cat var.log|awk '{print $3}')

위 명령 중 하나를 실행하면 오류가 인쇄됩니다.

Unable to register terminal service: Did not receive a reply. Possible causes
include: the remote application did not send a reply, the message bus security
policy blocked the reply, the reply timeout expired, or the network connection
was broken.

답변1

터미널의 "기본" 동작은 실행하라는 지시를 받은 프로그램이 완료되면 종료되는 것입니다. 이것이 가장 실용적인 일이기 때문에 이렇게 하는 것입니다. 출력이 사라지기 전에 읽으려면 끝에 다음과 같이 명령을 추가하는 것이 좋습니다.

urxvt -e sh -c 'cowsay howdy?; sleep 1337'

rxvt-unicode와 같은 일부 터미널에는 창 관리자가 닫을 때까지 대기하는 옵션이 있습니다.

-hold|+hold
    Turn on/off hold window after exit support. If enabled, urxvt will 
    not immediately destroy its window when the program executed within 
    it exits.  Instead, it will wait till it is being killed or closed by 
    the user; resource hold.

관련 정보