Hello i know it's a cpanel related forum.
but i want to ask a C related question because i am beginner and i want to create a auto installer tool in c so that i can compile that easily.
like some one run :
mycommand cpanel install
mycommand cpanel update
mycommand csf install
here mycommand is a C compiled file and cpanel and install are arguments.
if arguments is detected as cpanel then it read next argument which is install then it run cpanel install command.
if argument detected as cpanel update then it run /scripts/upcp command. and if argument detected as csf install then it install csf.
please someone can tell me how can i do this?
but i want to ask a C related question because i am beginner and i want to create a auto installer tool in c so that i can compile that easily.
like some one run :
mycommand cpanel install
mycommand cpanel update
mycommand csf install
here mycommand is a C compiled file and cpanel and install are arguments.
if arguments is detected as cpanel then it read next argument which is install then it run cpanel install command.
if argument detected as cpanel update then it run /scripts/upcp command. and if argument detected as csf install then it install csf.
please someone can tell me how can i do this?