At job warning "warning: commands will be executed using /bin/sh" what to do?

Ralf Mardorf kde.lists at yahoo.com
Fri Nov 10 18:36:26 UTC 2023


On Fri, 2023-11-10 at 18:02 +0100, Bo Berglund wrote:
> So if all I do in the at command is simple file/directory moves plus launch a
> script beginning with the shebang
> 
> #!/bin/bash
> 
> Then that code will be run by bash and not sh, right?

Copy and paste

#!/bin/bash
lsof -p $$ | grep "/bin" > /tmp/log_file.txt
exit

make it an executable script and take a look at /tmp/log_file.txt .




More information about the ubuntu-users mailing list