kamhighway Posted January 7, 2016 Share Posted January 7, 2016 I used nano to add 5 lines to the end of my go file, but they never seem to get executed. Here is the go file: #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & mkdir -p ~/.ssh cp /boot/scripts/ssh/authorized_keys ~/.ssh/ cp /boot/scripts/ssh/known_hosts ~/.ssh/ chmod 700 ~/.ssh chmod 600 ~/.ssh/* If I put the 5 lines in a separate script, I can execute it with no problem so I think the syntax is ok. What am I missing? Link to comment
CHBMB Posted January 7, 2016 Share Posted January 7, 2016 What happens if you try full paths without the tilde... Just wondering if the go file is executing too soon for the tilde to be "usable" Link to comment
kamhighway Posted January 7, 2016 Author Share Posted January 7, 2016 @CHBMB That fixed it. Thanks for taking the time to steer me in the right direction. Link to comment
CHBMB Posted January 7, 2016 Share Posted January 7, 2016 @CHBMB That fixed it. Thanks for taking the time to steer me in the right direction. No problem, glad it worked... Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.