07-09-2008
control sub-shells
Hi all,
New to shell scripting, I would like to know if it is possible to pass commands to a shell, which has been launched by a parent shell.
Example:
PHP Code:
#!/bin/ksh
#
# Launch and command shells
#
. mySecondShell.ksh #this launches a sub-shell
#now is something like this possible?
mySecondShell.ksh -> ls
Problem is that I cannot edit " mySecondShell.ksh". Goal is to automate software compilation (a command in a shell) and delivery (tarring, zipping etc etc).
Thanks a lot!!
Last edited by MarkZWEERS; 07-09-2008 at 06:41 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello every body
iam new to UNIX and shell scripting and i would like to know the different type of shells.
And also i would like to know the reason for Shell scripts
And tell me which will be the best site for UNIX beginners.
Regards
Sivam.
:rolleyes: (5 Replies)
Discussion started by: sivhard
5 Replies
2. UNIX for Dummies Questions & Answers
Hi
How can i switch shells on linux and freebsd?
i tried changing the passwd file and restarted the computer but i still get the same old shell. anybody has the answer?
thanks (6 Replies)
Discussion started by: xNYx
6 Replies
3. UNIX for Advanced & Expert Users
I have came across the definitions of these shells korn bourne c etc .. but honestly till now i din't get the exact difference between these threes , the advantages ..... can anyone pinpoint me where it actually lies ..... don;t include me answers like aliasing in c is posible and not in bourne ..... (3 Replies)
Discussion started by: dino_leix
3 Replies
4. Shell Programming and Scripting
Hello there,
i just want to know what are the different type of shells and the main difference betwee them. The problem is that if you try to search over the net you will find a lot of information and hence you will have no enough time to read all of them.....Anyone can help with this?? (1 Reply)
Discussion started by: charbel
1 Replies
5. Shell Programming and Scripting
Can anyone tell me about the classification and significance of variuos unix shells and why is only sh used for most shell scripting? (3 Replies)
Discussion started by: gurujoe
3 Replies
6. UNIX for Advanced & Expert Users
Can you pls. tell me, why we have different shells in UNIX OS ( Eg. SunOs) and also I would like to know what is the specific difference b/w SVR and BSD ?
Thanks. (2 Replies)
Discussion started by: shahnazurs
2 Replies
7. Shell Programming and Scripting
What is the practical difference among the different shell like
csh , ksh , bash etc.:confused::confused:
Please use descriptive subjects instead of single words (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies
8. Shell Programming and Scripting
I don't know why, but it just isn't working how I want it to work. You might want to run it to see what I mean. Or you might be a genius (or just really good at unix) and know just by looking at it what the problem is. Have fun trying to figure this one out.:wall: (11 Replies)
Discussion started by: nowruzr
11 Replies
9. UNIX for Dummies Questions & Answers
Lets say my default shell is bash and then i load up csh and then ksh. How would i exit csh without exiting ksh?
so basically i gone from bash > csh > ksh and i wish to close csh (2 Replies)
Discussion started by: Bill Thompson
2 Replies
10. UNIX for Dummies Questions & Answers
I mean like this: http://shells.red-pill.eu/
Can anyone explain how this works? I hope my post is not spam. I think its related to linux. Thank you (1 Reply)
Discussion started by: postcd
1 Replies
LEARN ABOUT MOJAVE
platform::shell
platform::shell(n) Tcl Bundled Packages platform::shell(n)
__________________________________________________________________________________________________________________________________________________
NAME
platform::shell - System identification support code and utilities
SYNOPSIS
package require platform::shell ?1.1.4?
platform::shell::generic shell
platform::shell::identify shell
platform::shell::platform shell
_________________________________________________________________
DESCRIPTION
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell.
This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only
requirement is that the other shell (identified by its path), is actually executable on the current machine.
While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell
this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run
32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers.
For applications like a code repository it is important to identify the architecture of the shell which will actually run the installed
packages, versus the architecture of the shell running the repository software.
COMMANDS
platform::shell::identify shell
This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell.
platform::shell::generic shell
This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell.
platform::shell::platform shell
This command returns the contents of tcl_platform(platform) for the specified Tcl shell.
KEYWORDS
operating system, cpu architecture, platform, architecture
platform::shell 1.1.4 platform::shell(n)