Hot answers tagged

2 votes

Download and Remove the files from SFTP server

sftp usually accepts commands interactively. The download and the remove are separate. We can make bash automate that: sshpass -p password123 sftp [email protected] << EOF get /Complete2/...
Daniel T's user avatar
  • 3,953
1 vote

Run a script after every grub-update

All you need to do is add your script file to /etc/grub.d and make it executable. They are executed in shell expansion order. For example, add this as /etc/grub.d/90_my_script #!/bin/bash echo this is ...
brianc's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible