I'm a basic user hoping to advance to an intermediate level. Ok, I've a file XAMPP(manager-linux-x64.run) which when i do a
sudo ./manager-linux-x64.run
It works. So, I was trying to go pro by doing this from its directory
ls | grep manager-linux-x64.run | sudo xargs ./
it doesnt work.it throws this error
xargs: ./: Permission denied
The file output of manager-linux-x64.run is
manager-linux-x64.run: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, stripped
What I am essentially trying to do is
get a list of files in the directory ,
grep the executable,
pipe the output
and execute it using ./manager-linux-x64.run since (sh,bash doesn't work on the .run file).
Moreover, is there any other command that can run a .run itself?