Sponsored Content
Top Forums Shell Programming and Scripting Environment partitioning in ksh Post 302864075 by RobinWedd on Tuesday 15th of October 2013 10:32:57 PM
Old 10-15-2013
hergp sorry, this is an idealised example. I should have shown the script names to be different, as they are in the actual code.

Thanks MadeInGermany, this works for me.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Partitioning

I'm looking for a Partitioning Tool preferably with a GUI preferably free that is easy to use if anyone has any suggestions they will be greatfully recieved, Thanks. (4 Replies)
Discussion started by: OSNovice
4 Replies

2. UNIX for Dummies Questions & Answers

Partitioning HD

I would like to install Redhat 7.2 on my Windows machine. I only have one hard drive and I dont want to lose Windows. Which method is best for partitioning the HD? I tried it once with Partition Magic and I was installing Corel Linux First Edition and Corel wiped out my entire HD (not good when... (2 Replies)
Discussion started by: primal
2 Replies

3. UNIX for Dummies Questions & Answers

Partitioning

Hiya folks, Before I install Linux, I want to partition my HD, basically I want to split my 80GB HD in half so I can run Linux but still keep Windows XP. I tried doing through the windows workstation and browsing the XP help files but it either didnt work or I was doing something wrong. I dont... (7 Replies)
Discussion started by: Mr_Pinky
7 Replies

4. UNIX for Dummies Questions & Answers

Getting 'out of range' when partitioning

Hello, Using Solaris 10. Going to mirror disks with solstice disksuite. Documentation says I have to make both disks partitioned exactly the same before moving on. Here's the layout of c1t0d0 Part Tag Flag Cylinders Size Blocks 0 root wm 1237 - 2473 6.00GB (1237/0/0) 12587712 ... (1 Reply)
Discussion started by: pmichner
1 Replies

5. UNIX for Dummies Questions & Answers

command completion in .sh or .ksh in AIX environment

How do you user command completion in .sh or .ksh in AIX environment? I know you can do it by hitting <esc><esc> in bash, but how do you do it in bourne or korn shell in AIX 5.3 environment? Thanks in advance. (1 Reply)
Discussion started by: pdtak
1 Replies

6. Red Hat

Partitioning?

Hey, this question is generated purely out of my lack of knowledge. Ok, obviously you can partition hard drives, I have Windows 2k, and can partition it from administrative tools, however, all of the help sections have utterly failed to give me any information other than "when you partition, it... (5 Replies)
Discussion started by: Mal_Zapatos
5 Replies

7. Ubuntu

About partitioning

Hi folks, Ubuntu 10.04-1 64-bit HD - 1T SATA3 I ran graphic installation installing Ubuntu-10.04-1 desktop from Live CD The partition on the new HD is as follow; /root /home /kvm (kvm is for keeping the guests of KVM, the virtualizer) Installion went through without problem abd... (0 Replies)
Discussion started by: satimis
0 Replies

8. Solaris

Partitioning Question

I was told that on the bootable drive, slice 02 is reserved for system usage. Is this true? In our deployment each server is equipped with a hardware RAID adapter. The current plan is to create the slices as follows: c1t0d0s0 = swap 16386 c1t0d0s1 = /var 15366 c1t0d0s2 = / free Does this... (4 Replies)
Discussion started by: msarro
4 Replies

9. Shell Programming and Scripting

Partitioning in AIX

I am working in AIX ver 5 rel 3. It shows as follows. @:on(cluster302)/home/abcde00-> shiusr1c is LPAR (Logical PARtition). Then what is "shiissra" called? Thanks Krishna Please use code tags next time for your code and data. (1 Reply)
Discussion started by: kmanivan82
1 Replies

10. Red Hat

Need help Partitioning

I am getting ready to install RHEL6 server. I have to create these partitions: / 10GB SWAP 3GB /opt/kent 10GB /opt/kent/logs /backup 20 GB Will Gparted do this? or whats the easiest way? or even a tutorial?I am so new to this (4 Replies)
Discussion started by: linux4noob
4 Replies
catch(n)						       Tcl Built-In Commands							  catch(n)

__________________________________________________________________________________________________________________________________________________

NAME
catch - Evaluate script and trap exceptional returns SYNOPSIS
catch script ?resultVarName? ?optionsVarName? _________________________________________________________________ DESCRIPTION
The catch command may be used to prevent errors from aborting command interpretation. The catch command calls the Tcl interpreter recur- sively to execute script, and always returns without raising an error, regardless of any errors that might occur while executing script. If script raises an error, catch will return a non-zero integer value corresponding to the exceptional return code returned by evaluation of script. Tcl defines the normal return code from script evaluation to be zero (0), or TCL_OK. Tcl also defines four exceptional return codes: 1 (TCL_ERROR), 2 (TCL_RETURN), 3 (TCL_BREAK), and 4 (TCL_CONTINUE). Errors during evaluation of a script are indicated by a return code of TCL_ERROR. The other exceptional return codes are returned by the return, break, and continue commands and in other special situa- tions as documented. Tcl packages can define new commands that return other integer values as return codes as well, and scripts that make use of the return -code command can also have return codes other than the five defined by Tcl. If the resultVarName argument is given, then the variable it names is set to the result of the script evaluation. When the return code from the script is 1 (TCL_ERROR), the value stored in resultVarName is an error message. When the return code from the script is 0 (TCL_OK), the value stored in resultVarName is the value returned from script. If the optionsVarName argument is given, then the variable it names is set to a dictionary of return options returned by evaluation of | script. Tcl specifies two entries that are always defined in the dictionary: -code and -level. When the return code from evaluation of | script is not TCL_RETURN, the value of the -level entry will be 0, and the value of the -code entry will be the same as the return code. | Only when the return code is TCL_RETURN will the values of the -level and -code entries be something else, as further described in the doc- | umentation for the return command. | When the return code from evaluation of script is TCL_ERROR, three additional entries are defined in the dictionary of return options | stored in optionsVarName: -errorinfo, -errorcode, and -errorline. The value of the -errorinfo entry is a formatted stack trace containing | more information about the context in which the error happened. The formatted stack trace is meant to be read by a person. The value of | the -errorcode entry is additional information about the error stored as a list. The -errorcode value is meant to be further processed by | programs, and may not be particularly readable by people. The value of the -errorline entry is an integer indicating which line of script | was being evaluated when the error occurred. The values of the -errorinfo and -errorcode entries of the most recent error are also avail- | able as values of the global variables ::errorInfo and ::errorCode respectively. | Tcl packages may provide commands that set other entries in the dictionary of return options, and the return command may be used by scripts | to set return options in addition to those defined above. EXAMPLES
The catch command may be used in an if to branch based on the success of a script. if { [catch {open $someFile w} fid] } { puts stderr "Could not open $someFile for writing $fid" exit 1 } There are more complex examples of catch usage in the documentation for the return command. SEE ALSO
break(n), continue(n), dict(n), error(n), return(n), tclvars(n) KEYWORDS
catch, error Tcl 8.5 catch(n)
All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy