mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 13:08:41 +00:00
96d4a3ecf7
Due to historical reasons, the code is in subfolder "1". With SVN removal, we place the code back and remove the annoying "1" folder.
10 lines
361 B
Bash
10 lines
361 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Run the fake pop server from bash
|
|
# Idea from http://blog.ale-re.net/2007/09/ipersimple-remote-shell-with-netcat.html
|
|
# Defaults to port 1100 so it can be run by unpriv users and not clash with a real server
|
|
# Optionally, pass in in a port number as the first arg
|
|
|
|
mkfifo fifo
|
|
nc -l ${1:-1100} <fifo |bash ./fakepopserver.sh >fifo
|
|
rm fifo |