What I need to do is run multiple instances of a script in parallel with different output paths from a single driver script, ie,
driver.ksh:
script.template:
The variable $num is set by the driver script and used by script.ksh to create an environment variable which defines the output path, among other things.
I cannot change the name of the environment variable or the fact that it IS an environment variable.
What I'd like to know is if it is possible to run each instance of script.ksh within its own separate environment, with it's own definition of $out_path.
Cheers
Last edited by Franklin52; 10-15-2013 at 02:57 AM..
Reason: Please use code tags for data and code samples
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT OSF1
return
exit(1) User Commands exit(1)NAME
exit, return, goto - shell built-in functions to enable the execution of the shell to advance beyond its sequence of steps
SYNOPSIS
sh
exit [n]
return [n]
csh
exit [ ( expr )]
goto label
ksh
*exit [n]
*return [n]
DESCRIPTION
sh
exit will cause the calling shell or shell script to exit with the exit status specified by n. If n is omitted the exit status is that of
the last command executed (an EOF will also cause the shell to exit.)
return causes a function to exit with the return value specified by n. If n is omitted, the return status is that of the last command exe-
cuted.
csh
exit will cause the calling shell or shell script to exit, either with the value of the status variable or with the value specified by the
expression expr.
The goto built-in uses a specified label as a search string amongst commands. The shell rewinds its input as much as possible and searches
for a line of the form label: possibly preceded by space or tab characters. Execution continues after the indicated line. It is an error to
jump to a label that occurs between a while or for built-in command and its corresponding end.
ksh
exit will cause the calling shell or shell script to exit with the exit status specified by n. The value will be the least significant 8
bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing
a trap, the last command refers to the command that executed before the trap was invoked. An end-of-file will also cause the shell to exit
except for a shell which has the ignoreeof option (See set below) turned on.
return causes a shell function or '.' script to return to the invoking script with the return status specified by n. The value will be the
least significant 8 bits of the specified status. If n is omitted then the return status is that of the last command executed. If return
is invoked while not in a function or a '.' script, then it is the same as an exit.
On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways:
1. Variable assignment lists preceding the command remain in effect when the command completes.
2. I/O redirections are processed after variable assignments.
3. Errors cause a script that contains them to abort.
4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari-
able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not
performed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO break(1), csh(1), ksh(1), sh(1), attributes(5)SunOS 5.10 15 Apr 1994 exit(1)