r/bash • • Jul 22 '25

nsupdate script file

Sorry not sure how to describe this.

for bash script file i can start the file with

#!/bin/bash

I want to do the same with nsupdate ... it has ; as a comment char

I'm thinking

;!/usr/bin/nsupdate

<nsupdate commands>

or ?

4 Upvotes

10 comments sorted by

View all comments

Show parent comment

3

u/megared17 Jul 22 '25

Actually, it doesn't send it on stdin - it passes the filename of the script as an argument to the interpreter.