Java Command

Mar 19, 2012 05:24 AM

Hello, does anyone know how I would send a command like "sudo pacman -Syu" in Java.

If that doesnt make sence here is what I mean. I want to make a Java program that will with buttons or something do a system update or something else but how will I get the code to come out like an actual terminal code. So here is a diagram to help me explain.

User ----> Java program -------> user clicks button in program -------> button executes code "sudo pacman -Syu" ------> System does what code is supposed to do "System upgrades".

I want to do this so I can try to learn a ton of different package managers and make one universial package manager like how Synaptics is used on Debian based systems to find and download the packages and the user not have to touch the command line. 

Sorry about the simple spelling errors it is late where I am.

Related Articles

637263493835297420.jpg

How to Use Zero-Width Characters to Hide Secret Messages in Text (& Even Reveal Leaks)

636455706472146367.jpg

How to Hide DDE-Based Attacks in MS Word

Comments

No Comments Exist

Be the first, drop a comment!