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
suspend(1) User Commands suspend(1)
NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)
SunOS 5.10 15 Apr 1994 suspend(1)