I need some help with an issue on my script. When I run option 3 it works just fine.
When I run Option 4 which puts back the changes done in option 3 it fails. Oddly enough when I run Option 4 right after it failed it seems to work. I am not sure why that is or is a false positive.
In short, the script references an input file hosts_lists.txt when contains two blocks of IP addresses
+ qip-setobject -u qipman -p qipman -s QIPSYBASE -d 1.a.txt
Object [ real-prod.rich.com.au ] collides with a V4Object name alias.
Update failed on 10.0.0.1
qip-setobject :: Error code = 524
+ echo 'Setting 1.a.txt ...'
Setting 1.a.txt ...
+ for x in '`ls *txt`'
+ qip-setobject -u qipman -p qipman -s QIPSYBASE -d 1.b.txt
+ echo 'Setting 1.b.txt ...'
Setting 1.b.txt ...
Please bear in mind that I haven't a clue about your application.
It would appear that whatever happens in the 1.b.txt run of qip-setopject makes a successful change which then allows the 1.a.txt run to work the second time through.
An inspired guess might be to reverse the order of the runs and do "b" before "a". However if this turns out to be a "Catch 22" where you cannot have two identical "V40Object name alias" it may be necessary to use a temporary intermediate name and change in a triangular rotation to avoid the duplicate.
can you show me on my code how it should look like please.
---------- Post updated at 08:09 PM ---------- Previous update was at 02:50 PM ----------
Anyone... out there can help me reversing my code as mentioned above?
---------- Post updated at 09:05 PM ---------- Previous update was at 08:09 PM ----------
ok, perhaps if someone can add a line or two in the code so when it goes to the mod directory to first clear the Aliases= real-prod row in 1.b.txt before finshing up.
I think the issue is real-prod exist as a A record already so that is why it cant put back the name as its was already named real-prod
in DNS you cant have two same names: see error message
Rolling back objects to Original properties ...
Object [ real-prod.rich.com.au ] collides with a V4Object name alias.
Update failed on 10.0.0.1
meaning that 10.0.0.2 has an alias real-prod.rich.com.au. so the script would need to clear that column:
See columns:
and then 1.a.txt
---------- Post updated 08-11-10 at 02:36 AM ---------- Previous update was 08-10-10 at 09:05 PM ----------
Hi,
Could someone just loop option 4 to run twice for me rather then doing it 2x manually without showing any errors on the screen. Thats the easiest for me as I dont know how to fix this.
Hello,
I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file.
For example;-
In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
HI Guys,
My Script abc.sh
1) Checks
2) CA Scipt
3) CIA Script
0) Exit
Enter Choice :
Now if i select choice 2 then after finshed choice 2 wait for 40 min and run choice 3
what i can write in CA Scipt option:
if
then
My Code :
... (3 Replies)
Hi,
I am trying to create warraper script to run a shell script in which can be run using particular user id only .
I have deoded the user password thst user and wanted to pass while running inside shell script as below .Script should come back to same shell after executing screen_update.sh.... (2 Replies)
Hi,
Some one help in completing the script:
I need to write a script which has to select automatically only one option(below case only D - ALL) out of all options instead of manual entry
There is an script which is used to test number of connection to different db that it connects when we... (7 Replies)
could someone show me a sample command line option driven script?
i want to see an easy way to write one and how i can execute it using command line options such as typing in
read.pl -i <id> -c <cmds> -s <start> -e <end>
would read out all the commands run by ID . from start time to... (7 Replies)
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Hi,
So my script reads $1 on the command line.
example:
SCRIPT_NAME 1111
In my script I use a nawk statement to grab $1 but I also need it to read $1 from the variable (1111 from command line in the example)
nawk -F, '($1~1111)' *.$date.*
What can I do so that this nawk statement... (2 Replies)
I have a series of around 20 files as my program output. The final line of my script gets the no of files and the file list for the present day. The no of files shoudl be printed first and the files for today must be printed in the next line. Ialso understood that echo -e must be used for with \n.... (4 Replies)
Hi all,
I am parsing command line options using getopts.
The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument.
Below is the script:
while getopts :hd:t:s:l:p:f: opt
do
case "$opt" in
-h|-\?)... (2 Replies)
Dear experts,
Im trying to create a script which will allow me to do the following:
1) log in with a username and password.
2) select an option.
this is how the menu looks:
Select one of the following options:
1 - Activation Menu
2 - Troubleshooting Menu
3 - New... (3 Replies)