Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know Macs are based on BSD so I am asking this question here.
I have 2 sets of machines. First set is the obvious windows PCs and the other is Macs. What we do on the windows units, dump a ghost image onto the machine and then use a series of batch files to move files, set users and to join the active directory. On the Macs we do everything by hand and it takes a LONG time to do alot of them at once.
What I want to know is how do how to get the Macs (BSD) to run a file, such as bash or perl, to update the OS and add to Active directory without having to log into the mac? So after the image is dumped onto the machine, it should run:
/usr/local/bin/ktcheck -c sha1 -h <server>
/usr/local/bin/fsdiff -A -c sha1 /|/usr/local/bin/lapply -h <server>
and then Join it to the active directory. Using a master script. And the other question would be on the second one (which takes about 2 hours) how to show progress if the first question is capable.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Depends from how you set up cron. I (mis?)-understood that you want to do this periodically. Else you simply issue the concatenated jobs from the command line. But maybe I just didn't get what you really want to do...
basically I want when the machine restarts the first time, it will run 2 commands on its on and join AD without ever having anyone entering in the command. It will do it once and that is it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.