0

How to access the Command line interface directly from this programming languages?

To work directly with the operating system, placing commands from a language

11th Dec 2016, 10:45 PM
Awodire Babajide Samuel
Awodire Babajide Samuel - avatar
10 Answers
+ 2
its possible to execute the system command like dir, ipconfig, in linux touch ,mkdir using c and it depends on language because some gives its own functionality to deal with system but user can directly execute itself in c/c++ using system() its pososible and in python using os.system and call module for linux / windows. interface depends how program is designed
12th Dec 2016, 11:23 AM
Piyush Goyani
Piyush Goyani - avatar
+ 2
how to give command line arguments in SoloLearn
12th Dec 2016, 11:25 AM
Morpheus
Morpheus - avatar
+ 2
it's not about sololearn at here and CLI doesn't need to be argument with it for execution of programs. And if there are arguments then by user inputs it can be append/attached with command using variable in SoloLearn also there is no need for extra cli interface because the execution of command will in system() so user input or argument can append in there.
12th Dec 2016, 11:29 AM
Piyush Goyani
Piyush Goyani - avatar
+ 1
@raj I used C language to access CMD using system() ...anything is possible??
12th Dec 2016, 9:01 AM
Awodire Babajide Samuel
Awodire Babajide Samuel - avatar
+ 1
@piyush Thanks a lot
12th Dec 2016, 1:51 PM
Awodire Babajide Samuel
Awodire Babajide Samuel - avatar
0
not possible here Samuel, I tried but I m open to suggestions
12th Dec 2016, 2:48 AM
Morpheus
Morpheus - avatar
0
share it, how to do Samuel
12th Dec 2016, 9:18 AM
Morpheus
Morpheus - avatar
0
@neetish system(" dir "); .........you can pass a command line language into your system () in double quote to access command line administrator's privileges
4th Oct 2017, 3:49 AM
Awodire Babajide Samuel
Awodire Babajide Samuel - avatar
- 1
@samuel show us how, that would be great
1st Oct 2017, 9:34 PM
Morpheus
Morpheus - avatar
- 1
thx Samuel , gonna try will reply back if troubled
4th Oct 2017, 4:38 AM
Morpheus
Morpheus - avatar