How to run ksh script in bash shell?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to run ksh script in bash shell?
# 8  
Old 10-05-2013
install ksh and run
This User Gave Thanks to Akshay Hegde For This Post:
# 9  
Old 10-05-2013
i tried Akshay Smilie see below error when i tried to install..

Code:
[root@v001 ~]# yum install ksh
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use su                                                                                        bscription-manager to register.
file:///mnt/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///m                                                                                        nt/Server/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ksh.x86_64 0:20100621-19.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch             Version                    Repository      Size
================================================================================
Installing:
 ksh           x86_64           20100621-19.el6            rhel           686 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 686 k
Installed size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:


Error Downloading Packages:
  ksh-20100621-19.el6.x86_64: failure: ../Packages/ksh-20100621-19.el6.x86_64.rpm from rhel: [Errno 256] No more mirrors to try.

---------- Post updated at 02:08 AM ---------- Previous update was at 02:06 AM ----------

I am new to this Unix shell scripting so i don't understand many things Smilie

Last edited by Scrutinizer; 10-05-2013 at 05:41 AM.. Reason: code tags
# 10  
Old 10-05-2013
try to download rpm and then install

RPM resource /bin/ksh

Code:
rpm  -ivh package_name.rpm


Last edited by Akshay Hegde; 10-05-2013 at 04:37 AM..
This User Gave Thanks to Akshay Hegde For This Post:
# 11  
Old 10-05-2013
thanks akshay Smilie I am not getting permission to download from manager...
just see whether any other ideas are there Smilie
thanks a lot Smilie
# 12  
Old 10-05-2013
login as root
# 13  
Old 10-05-2013
I mean I am not getting permission from my project manager to download Smilie
# 14  
Old 10-05-2013
ksh is part of the standard Redhat distribution, so no need to download anything, just install it from the distribution itself, I don't understand how your manager could object to this. Your yum repositories are not properly set up and yum needs to be told where it can find those files (and your systems appear to not be registered either)...
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 make a bash or shell script run as daemon?

Say i have a simple example: root@server # cat /root/scripts/test.sh while sleep 5 do echo "how are u mate" >> /root/scripts/test.log done root@server # Instead of using rc.local to start or another script to check status, I would like make it as daemon, where i can do the following: ... (2 Replies)
Discussion started by: timmywong
2 Replies

2. Shell Programming and Scripting

Run script in a backgroun - ksh

i ran the below in ksh... nohup <script> & it is runnign in background. now how do i see if the above command is success... i also need to bring the command to foreground and view the run details. pls advise how to do that... (1 Reply)
Discussion started by: billpeter3010
1 Replies

3. Shell Programming and Scripting

How to run a bash script in csh shell?

Hi how to execute a bash script in csh shell? Thanks (3 Replies)
Discussion started by: rubinovito
3 Replies

4. Shell Programming and Scripting

HOW to run a bash-code in a c-shell script ??

Is there a way to run some code in a C-shell script by different shell, like bash? I have that situation. I have prepared and perfectly workable bash-skript that now I have to execute under C-shell script, divide it on steps and without creating a new files (with the bash-code parts.) For... (6 Replies)
Discussion started by: alex_5161
6 Replies

5. UNIX for Dummies Questions & Answers

Tcl script wont run in bash shell

Hello I'm having a problem running a TCL script in my new OpenSolaris OS. When I go to the directory containing my script called 'Install' (using the gnome terminal), it doesn't seem to be able to find it even though it lists it i.e. if I type "Inst" and hit tab to complete the word, it... (11 Replies)
Discussion started by: sbsbg
11 Replies

6. Shell Programming and Scripting

KSH script to run other ksh scripts and output it to a file and/or email

Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies

7. Shell Programming and Scripting

General Q: how to run/schedule a php script from cron jobs maybe via bash from shell?

Status quo is, within a web application, which is coded completely in php (not by me, I dont know php), I have to fill out several fields, and execute it manually by clicking the "go" button in my browser, several times a day. Thats because: The script itself pulls data (textfiles) from a... (3 Replies)
Discussion started by: lowmaster
3 Replies

8. Shell Programming and Scripting

how to make your bash script run on a machine with csh and bash

hi, i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies

9. Solaris

Correct me to run a sh file in ksh shell!

Hi all! I wrote a file named as rman_backup.sh, and this is contents #!/bin/ksh ORACLE_SID=VNP;export ORACLE_SID echo $ORACLE_SID echo "Please Specify the kind of backup you want to take" echo "1) LEVEL 0 VNP" echo "2) LEVEL 1 VNP" echo "3) EXPORT BACKUP" echo "Enter your option" ... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies

10. Shell Programming and Scripting

Shell script run error ksh: not found

Hi All, I am trying to run a script to FTP files from one UNIX server to another UNIX server. Actually I can able to FTP file successfully by manually or paste whole script at prompt. But when I am trying to run script it is giving error. Please let me know the cause. #!/bin/sh... (3 Replies)
Discussion started by: nz80qy
3 Replies
Login or Register to Ask a Question