Invoke perl program from Ksh


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Invoke perl program from Ksh
# 8  
Old 12-19-2006
Thanks a lot to anbu and also to aju_kup for the explanations given. I will try out in the same way.

Thanks
Maha
# 9  
Old 12-19-2006
I will invoke the program and pass the parameters to the same. But if I need to return back some output from that perl program to the ksh file. How can I do it?..

Thanks
# 10  
Old 12-19-2006
what do you mean by output ? It's going to be displayed on the shell, or you can always cat the file.
# 11  
Old 12-19-2006
Quote:
Originally Posted by mahalakshmi
I will invoke the program and pass the parameters to the same. But if I need to return back some output from that perl program to the ksh file. How can I do it?..

Thanks
Code:
pl1
###################
#!/bin/perl
my $par1=shift;
print "$par1\n";
###################

Code:
myscript.ksh
###################
#!/bin/ksh
output=$(pl1 unix)
###################

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to invoke external program and capture its output

Hi all, I am using an external binary to view memory starting from a specific address and i want to automate this via PERL however there are problems. Hope you can help me ..thx The output of the programme is like below: bash-3.2$ mem_disp 12B21D20 100 Opening RO Data Memory File scp.ro... (4 Replies)
Discussion started by: ekckabatop
4 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. 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

4. Solaris

How to invoke remote java program from ssh

How can i invoke java program from MC1, when I connect remotely to execute can I set classpath etc. ____________ <-------------->____________________ |..................|<-------------->|...............................| |..................|<-------------->|...............................|... (2 Replies)
Discussion started by: vishnu559
2 Replies

5. Shell Programming and Scripting

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 |... (1 Reply)
Discussion started by: rahman_riyaz
1 Replies

6. Shell Programming and Scripting

How to invoke a perl script from java program

Hi: I need to invoke a perl script from a java applet program in UNIX operating system.. Can you please suggest me!!! (4 Replies)
Discussion started by: grajesh_955
4 Replies

7. 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

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 java program in script

Hey all, My boss tasked me with the job to write a script which would invoke various java programs, the thing is I don't know much about shell scripting so would you experts help me out? Here is the requirement - 2 applications written in java: App_A and App_B -... (0 Replies)
Discussion started by: mpang_
0 Replies

10. UNIX for Advanced & Expert Users

Invoke java program in different processc d

I have a simple script like this: for file in $dodfiles; do ./rundod $file done $dodfiles is an array of file names selected rundod is a script which invokes a java progrm which process a data file all the processing message logged into a log file in order to extract and analyze the... (1 Reply)
Discussion started by: liux99
1 Replies
Login or Register to Ask a Question