• 2 Posts
  • 14 Comments
Joined 1Y ago
cake
Cake day: Jul 05, 2023

help-circle
rss

thx, btw I figured it out:

I forgot to trimm the string, so it had a line break in it which lead to grep showing the processes from the term I put in + all processes that contain a space/linebreak and appearently all processes shown by ps aux contain some kind of space (makes sense, since there are spaces between the user, pid, etc) so yeah, I ended up trying to kill every process on the system, but it only killed the user processes, since I ran everything without sudo


probably the later, but idk how, all I did was insert a string in the following command like this:

``Command::new(“bash”)

.arg(“-c”) .arg(format!(“ps -aux | grep -i "{}" | awk ‘{{print $2}}’ | xagrs kill -9”, input)

.output()

.expect(“error”);``

I’ve tested the command and it worked flawlessly in the terminal, but I have no idea what I’m doing, since I’m new to rust and never worked with this library


it didn’t crash the kernel, it just killed every process that isn’t run by the root user, which kind of feels like a crash


Do you know the definition of insanity?

do you know software developers?


This happend to me right noww as I tried to write a gui task manager for the GNU/Linux OS
fedilink







Once when I was drunk it took me 5min to realise, that a cd rom is in fact a read only file system


Than german is like Assembly, hard to learn, every flavour is completly different, everything is kind of glued together and the language is extremly prezise.



It’s about the feeling when people are a milion times more skilled in your field