Highlighted
Absent Member.
Absent Member.
972 views

Bash Script

i wonder if anyone can help me..I have created this script
zisedit -c
img rp 10.31.1.87 xpm58image.zmg
reboot -f

and loaded it to the correct place.
addfiles\bin and called it john.img

when I run john.img it it does not run zisedit -c but bring up the edit window?

I know zisedit -c works and also when you click past this window and exit then the img rp loads and starts working but when it gets to reboot -f it again stops with the help for reboot!

Can anyone help me..I have check and it looks ok...just not sure why zisedit -c is a problem in the script or reboot -f


Why are we doing this:

We had an issue when the workstation are reimaged they came up with a different name..by change we found that at times when people have built the image that they have called it this different name for testing and this name is in the Image safe so we are clearing it out now so it appears that the machine is always NEW...
Labels (2)
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

Re: Bash Script

Use this insted
shutdown -r -n now

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Bash Script

Ohh and BTW if you use
img -rp IMAGENAME ( you dont have to define the imaging server)

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Bash Script

Morn esh

The real issue is that when i run the script it sopes at the zisedit windows rather then do this zisedit -c whcih is what I want to do..So how do I tell the script to run the zisedit - c rather then promt me with the zisedit gui window
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.