함수 system()

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:33 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 C[ | ]

#include <stdio.h>
#include <stdlib.h>
int main () {
    system("grep 8080 /etc/services");
    // http-alt         8080/tcp
    // http-alt         8080/udp
}

2 PHP[ | ]

passthru('grep https /etc/services');
# https		443/tcp				# http protocol over TLS/SSL
# https		443/udp

3 Python[ | ]

import os
os.system('grep www-http /etc/services')
# https		443/tcp				# http protocol over TLS/SSL
# https		443/udp

4 R[ | ]

system("grep 8080 /etc/services")
# http-alt         8080/tcp
# http-alt         8080/udp

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}