Skip to main content
added 79 characters in body
Source Link

I was trying to run a .sh script on my OpenBSD machine on startup.

I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading

@restart@reboot sh /dir/myscript.sh

(no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail.

The script is a basic echo "hello" command. Any tips?

Note: I edited restart to reboot, as I misremembered exactly what I typed in

I was trying to run a .sh script on my OpenBSD machine on startup.

I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading

@restart sh /dir/myscript.sh

(no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail.

The script is a basic echo "hello" command. Any tips?

I was trying to run a .sh script on my OpenBSD machine on startup.

I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading

@reboot sh /dir/myscript.sh

(no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail.

The script is a basic echo "hello" command. Any tips?

Note: I edited restart to reboot, as I misremembered exactly what I typed in

Formatting (break into paragraphs, use block code for file excerpt)
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

I was trying to run a .sh script on my OpenBSD machine on startup. 

I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading @restart sh /dir/myscript.sh

@restart sh /dir/myscript.sh

(no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail. 

The script is a basic echo "hello" command. Any tips?

I was trying to run a .sh script on my OpenBSD machine on startup. I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading @restart sh /dir/myscript.sh (no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail. The script is a basic echo "hello" command. Any tips?

I was trying to run a .sh script on my OpenBSD machine on startup. 

I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading

@restart sh /dir/myscript.sh

(no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail. 

The script is a basic echo "hello" command. Any tips?

add missing tag, markup
Source Link
Kusalananda
  • 355.9k
  • 42
  • 735
  • 1.1k

I was trying to run a .sh script on my OpenBSD machine on startup. I've made the script executable using the chmod +xchmod +x command. I've also added the script to cron via an entry reading '@restart sh /dir/myscript.sh'@restart sh /dir/myscript.sh (no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local/etc/rc.d/rc.local and making that executable as well, to no avail. The script is a basic echo "hello"echo "hello" command. Any tips?

I was trying to run a .sh script on my OpenBSD machine on startup. I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading '@restart sh /dir/myscript.sh' (no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail. The script is a basic echo "hello" command. Any tips?

I was trying to run a .sh script on my OpenBSD machine on startup. I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading @restart sh /dir/myscript.sh (no quotes) as well as adding the script via and entry to /etc/rc.d/rc.local and making that executable as well, to no avail. The script is a basic echo "hello" command. Any tips?

Source Link
Loading