I can not give much explanation because my English is bad. The example of what I want to do is below;
Putty appearance:
Before;try.sh
root@ubuntu#!/bin/sh
echo -n "Enter the port:~#"
read shports
if try[ ! -d "$ports" ]; then
mkdir -p /root/port$ports
echo "The folder was created for $ports"
wget -q www.shexample.com/example.tar.bz2
Entertar the-xjf Port:example.tar.bz2
su root -c "screen -A -m -d -S 'example$ports' ./example -RunningAsRootIsEvilAndIKnowThat"
echo "$ports started."
else
exit 0
fi
After;Putty;
root@ubuntu:~# sh try.sh
Enter the Portport: 44554445, 4546,8563,2324
4455 portCreated isfolder opened.'port4445'
4546 portCreated isfolder opened.'port4546'
8563 port is4445 openedstarted.
2324 port is4546 openedstarted.
How can i make?