Sponsored Content
Top Forums Shell Programming and Scripting For Loop help with patchrm Solaris 10 Post 302344778 by DukeNuke2 on Monday 17th of August 2009 02:07:29 PM
Old 08-17-2009
Quote:
Originally Posted by caddyjoe77
what do you mean the useless use of cat award? Would you suggest using something else?
the second code IS the better solution!
 

8 More Discussions You Might Find Interesting

1. Solaris

patchadd/patchrm

Ok, I attempted to apply a patch to a V440 and it bailed part way through. When I tried to patchrm the patch (after booting from CD), patchrm said that I had to fully install the failed patch before I could delete it. Since installing it killed the system forcing a boot from CD, it sounds like a... (4 Replies)
Discussion started by: BOFH
4 Replies

2. UNIX for Dummies Questions & Answers

patchrm problem

Hello, In order to remove a patch, I type following command; # #patchrm 119314-11 and following error message shown on the screen, the patch can not be removed: Cannot find teh backout packages for 119314-11 119314-11 cannot ve backed out. Patchrm is terminating. WARNING: patchrm... (0 Replies)
Discussion started by: XNOR
0 Replies

3. Solaris

Problem in for loop of shell scripting in solaris

Hi below is my script for((i=0;i<=$TOTAL;i++)) do echo "IP's created are $s1.$s2.$s3.$s4" s4=`expr $s4 + 1` done where s1,2,3,4 are input varibles below error occurs while running the script syntax error at lin 11: '(' unexpected ... (12 Replies)
Discussion started by: krevathi1912
12 Replies

4. Shell Programming and Scripting

Using variables created sequentially in a loop while still inside of the loop [bash]

I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends. As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Discussion started by: DeCoTwc
2 Replies

5. Solaris

Solaris 10 Login Loop Problem

I recently installed Solaris 10 as a VM. I was using the JDS and shut down the vm when I left the office. When I rebooted today I login in at the desktop login screen and press ok but I am reverted to the console screen for a spilt second and then back to the login screen. I log in as root and my... (7 Replies)
Discussion started by: mvhoward
7 Replies

6. Shell Programming and Scripting

Array Variable being Assigned Values in Loop, But Gone when Loop Completes???

Hello All, Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....? I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping through a string containing some of these "Illegal Characters". Now... (5 Replies)
Discussion started by: mrm5102
5 Replies

7. Shell Programming and Scripting

awk loop using array:wish to store array values from loop for use outside loop

Here's my code: awk -F '' 'NR==FNR { if (/time/ && $5>10) A=$2" "$3":"$4":"($5-01) else if (/time/ && $5<01) A=$2" "$3":"$4-01":"(59-$5) else if (/time/ && $5<=10) A=$2" "$3":"$4":0"($5-01) else if (/close/) { B=0 n1=n2; ... (2 Replies)
Discussion started by: klane
2 Replies

8. UNIX for Beginners Questions & Answers

Solaris 10 Login Page Loop

I'm currently logged in as Root on a Solaris 10 Server for my schools department and I'm trying to figure out why 20 of my users(Students) can log into the Solaris 10 Sun Ray Oracle Server with correct username and password but then be looped back to the same log in page. I tried deleting their... (7 Replies)
Discussion started by: mwilliams21z
7 Replies
STG-SINK(1)							   StGit Manual 						       STG-SINK(1)

NAME
stg-sink - Send patches deeper down the stack SYNOPSIS
stg sink [-t <target patch>] [-n] [<patches>] DESCRIPTION
This is the opposite operation of linkstg:float[]: move the specified patches down the stack. It is for example useful to group stable patches near the bottom of the stack, where they are less likely to be impacted by the push of another patch, and from where they can be more easily committed or pushed. If no patch is specified on command-line, the current patch gets sunk. By default patches are sunk to the bottom of the stack, but the --to option allows to place them under any applied patch. Sinking internally involves popping all patches (or all patches including <target patch>), then pushing the patches to sink, and then (unless --nopush is also given) pushing back into place the formerly-applied patches. OPTIONS
-n, --nopush Do not push back on the stack the formerly-applied patches. Only the patches to sink are pushed. -t TARGET, --to TARGET Specify a target patch to place the patches below, instead of sinking them to the bottom of the stack. -k, --keep Keep the local changes. STGIT
Part of the StGit suite - see linkman:stg[1] StGit 03/13/2012 STG-SINK(1)
All times are GMT -4. The time now is 04:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy