473,395 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

need a source command eqlnt

Hi,

In csh (C-Shell) we have source command

source <file name>

I need equivalent command for this "source" in ksh.

Why I need:
As I am running a script under ksh (K-Shell).
I entered two below commands

csh
source .myfl
<special command>

script did not execute further, after executing csh.
It got halted with "%" prompt. Later i typed "exit".
It came back to ksh & tried to execute "source" but gave message source command not found.

All the three commands I tried to execute from command prompt instead of script, it got executed & gave exact result as expected.
Please help me. This is little urgent.

Thanks & Regards,
Girish Kanakagiri
Jul 19 '11 #1
1 2176
numberwhun
3,509 Expert Mod 2GB
Check out the korn shell man page and you will find that there are two ways to source a file in Korn shell. Either with the 'source' command or with a dot(.). For example:

Expand|Select|Wrap|Line Numbers
  1. . ./.kshrc
This will source the .kshrc file in the current directory.

Regards,

Jeff
Jul 31 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bernd Oninger | last post by:
Ok, in order to validate a given xml file against a given xsd file I would like to type at the command prompt something like java -classpath .;\blah\bluh\foo.jar myxmlfile.xml Is there such a...
4
by: MLH | last post by:
I am having failures processing the following command and I wonder if you can tell me what I must do in order to have success. When I try to run source mysql_dump.sql.txt ==> it is a problem...
2
by: futureProgrammer | last post by:
HI, I'm in the middle of a program and i need a command in Visual C++ for setting up the position of the cursor. Means, i want to set the position of cursor on the screen and then print whatever i...
4
by: Michael R | last post by:
Hello. I would like to replace the defalt Scroll Bars with custom buttons in a continuous form. I've tryed to make command buttons with the goto next/previous record macros, but those aren't...
3
by: mostafijur | last post by:
Hi, I need Source code in C/C++ to capture packets from a LAN using Linux (Mandriva) OS.Packets are like TCP,UDP,HTTP. Thanks
6
by: maddy dcosta | last post by:
how to pass the command line arguments in c
8
by: punitshrivastava | last post by:
Hi to All. I am Punit .I am back with new question .Please help me. I want to create one enquiry form in php.for this I code it: form code: <form name="enquiry" method="post" ...
3
by: Jie | last post by:
Hi all, i'm having trouble executing os.system('source .bashrc') command within python, it always says that source not found and stuff. Any clue? Thanks, Jie
2
by: Taras_96 | last post by:
Hi everyone, I'm trying to run a number of commands stored within a sql file from within php using mysqli::query. The syntax I'm using is: source C:\data\projects\forum...
7
by: ted clarke | last post by:
hello. i am running mysql5 on mac osx 10.5. i am new to both of these. i have created a sql script file and i am trying to use it with the sql SOURCE command. when i execute the command: SOURCE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.