how to create a product that execute a given bash script for linux.
how to create a product that execute a given bash script for linux.
New to opsi, I want to run a .sh script on target Ubuntu. Hope I can accomplish this with "opsi-script".
Re: how to create a product that execute a given bash script for linux.
Hi,
you could use "shellCall()" to run your script
https://download.uib.de/opsi_stable/doc ... llCall_str
Regards
Mathias
you could use "shellCall()" to run your script
https://download.uib.de/opsi_stable/doc ... llCall_str
Regards
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Re: how to create a product that execute a given bash script for linux.
Thanks for your reply,
Being a novice, will be happy to know how to use that funtion. The complete cycle. any forum link or example will be helpful. This is going to be my first experience.
Regards
prakash
Being a novice, will be happy to know how to use that funtion. The complete cycle. any forum link or example will be helpful. This is going to be my first experience.
Regards
prakash
Re: how to create a product that execute a given bash script for linux.
Hi
you can install some of the linux localboot packages we provide and take a look into the setup.opsiscript and see how it is used there.
Regards
Mathias
you can install some of the linux localboot packages we provide and take a look into the setup.opsiscript and see how it is used there.
Regards
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Re: how to create a product that execute a given bash script for linux.
m.radtke hat geschrieben: ↑14 Sep 2023, 10:42 Hi,
you could use "shellCall()" to run your script
https://download.uib.de/opsi_stable/doc ... llCall_str
Regards
Mathias
Thanks for the hints, tried a shell script to touch a file in /tmp directory with "shellCall()", did not get the result. Attached is the script and log image of opsiclientd.log. Where is the mistake?
Regards
arul
- Dateianhänge
-
- script.PNG (105.87 KiB) 6382 mal betrachtet
-
- log.PNG (88.72 KiB) 6382 mal betrachtet
Re: how to create a product that execute a given bash script for linux.
Do I have to create a fresh thread?
Regards
arul
Regards
arul
Re: how to create a product that execute a given bash script for linux.
Hi
take a look into the opsi-script.log on the client in /var/log/opsi-script/
The shellcall is logged there and you can take a look if any errors occoured.
Regards
Mathias
take a look into the opsi-script.log on the client in /var/log/opsi-script/
The shellcall is logged there and you can take a look if any errors occoured.
Regards
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Re: how to create a product that execute a given bash script for linux.
Hi Radtke
Thanks for your reply.
There is no error logged on opsi-script.log. Attached is a screenshot of the log on the previous post reply.
Regards,
arul
Thanks for your reply.
There is no error logged on opsi-script.log. Attached is a screenshot of the log on the previous post reply.
Regards,
arul
Re: how to create a product that execute a given bash script for linux.
Hi
you can also download the package locally and start opsi-script locally to see where the script breaks. Exit Code is 1 so there's something wrong.
Regards
Mathias
you can also download the package locally and start opsi-script locally to see where the script breaks. Exit Code is 1 so there's something wrong.
Regards
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Re: how to create a product that execute a given bash script for linux.
Could you please tell, how is that done.
Regards,
arul
Regards,
arul