Not able to invoke a sh script from KSH


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Not able to invoke a sh script from KSH
# 1  
Old 03-31-2009
Not able to invoke a sh script from KSH

Hi all,

Iam writing a KSH script which needs to export dispaly to Xwindows and then involke a sh script .. But a core file is getting genrated for reasons not known to me.

Please check i need incorporate below mentioend code in my script which iam not abel to ..

export DISPLAY=`who am i | awk '{FS="[()]"; print $2}'`:0

and
#I need to invoke this script but when i specify the beolwo code iamn ot abel to run.


./start.sh

Please advise how i can encoporate both of these peices of code in my KSH.

Thanks in anticipation.
# 2  
Old 03-31-2009
Quote:
Originally Posted by rahman_riyaz
Hi all,

Iam writing a KSH script which needs to export dispaly to Xwindows and then involke a sh script .. But a core file is getting genrated for reasons not known to me.

Please check i need incorporate below mentioend code in my script which iam not abel to ..

export DISPLAY=`who am i | awk '{FS="[()]"; print $2}'`:0

and
#I need to invoke this script but when i specify the beolwo code iamn ot abel to run.


./start.sh

Please advise how i can encoporate both of these peices of code in my KSH.

What's the problem? If you want them in your script, put them there.

If they give errors, post your script and the exact error message.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Depend on Script message needs to be invoke anothe script

I have script below #! /bin/bash if then echo "JBoss is NOT running" else echo "JBoss is running" fi If JBoss is NOT running need to be invoke another script i.e jboss startup script /home/vizion/Desktop/jboss-4.2.3.GA/bin/run.sh script from other script not... (5 Replies)
Discussion started by: Chenchireddy
5 Replies

2. Shell Programming and Scripting

Script of invoke an email program

Is it possible that a shell script invokes a windows mailing application like Lotus Notes and creates a mail and sends it ? (2 Replies)
Discussion started by: csrohit
2 Replies

3. Emergency UNIX and Linux Support

invoke one script based on previous script execution

I am database guy and not very good at shell scripts. I am seeking help to sharp my script coding. I have 5 scripts 1. master script. I use this one to call other four scripts to do database work. 2. db_backup_1 and log_backup_1 3. db_backup_2 and log_backup_2 in master script, I want to... (4 Replies)
Discussion started by: duke0001
4 Replies

4. UNIX for Advanced & Expert Users

Invoke unix script using c program

hi i want to invoke a unix script in a C program and also return some value from the script to the C program to use that value further. Basically i am doing a Lookup operation in this unix script and returning the looked up data from a oracle database table.. please help me invoke as well... (1 Reply)
Discussion started by: somi2yoga
1 Replies

5. Solaris

To invoke a script on a remote machine

Hi, I am trying the following- 1. ftp a file from machine1 to machine2. 2. Once the ftp is done, from machine1 invoke a shell script on machine2. Could anyone please help me on this? (5 Replies)
Discussion started by: sam_roy
5 Replies

6. Shell Programming and Scripting

how to Invoke html in ksh Script

how to invoke html file from a ksh shell plz help......... (4 Replies)
Discussion started by: ali560045
4 Replies

7. Shell Programming and Scripting

Invoke perl program from Ksh

Hi all, Can I invoke a perl script from Ksh script and pass parameters to the perl script. Please do help me.. thanks Maha (10 Replies)
Discussion started by: mahalakshmi
10 Replies

8. Shell Programming and Scripting

invoke ksh in SunOS 5.7

Hi I have the following in .kshrc file set -o allexport HOSTNAME=$(uname -n) HISTSIZE=50 EDITOR=vi ENV=$HOME/.kshrc PATH=$HOME/bin:/usr/bin:/usr/local:/etc/bin/:/bin:/usr/local/bin:. bind =complete set +o allexport clear and I have the following in .profile umask 077... (2 Replies)
Discussion started by: muru
2 Replies

9. Shell Programming and Scripting

invoke same script twice

hey, can I invoke the same script twice simultaneously? I want both instances to run at the same time with different parameters. Thanks! (2 Replies)
Discussion started by: mpang_
2 Replies

10. Shell Programming and Scripting

how to invoke shell script

hi everybody, i learning unix now only.Can u pls guide me in invoking a shell script.Actually i need to know how to write the command for invoking the shell script.Suppose the shell file name is count , then how i will write the command. thanks (1 Reply)
Discussion started by: gopa_mani
1 Replies
Login or Register to Ask a Question