함수 system()

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 }}