Hey NeoStar01 -
google gave me this and it never lies!! i like the 2nd link best
http://www.google.com/search?hl=en&l...ts&spell=1
HI Everyone,
Well I got this page from class and we are doing a bit of simple korn shell scripting, however every single example he has listed I try to run as a test to visually see how its working and none of his sample scripts work.
Does anyone know of a good link to start out with for some very basic korn shell scripting. I can get the main function of the scripts to work but to add comments the shell just ingores the comments and then goes onto the main function of the script.
Any good links would be much appreciated.
TIA
NeoStar
Hey NeoStar01 -
google gave me this and it never lies!! i like the 2nd link best
http://www.google.com/search?hl=en&l...ts&spell=1
Howdy pbharris,
always trust your word on things. but um the linky doesn't go to a search result ;D
What key words did you use and maybe I can get he same results with the second link like you said.
Looks like the link has been munged.
http://www.google.com/search?hl=en&l...ts&spell=1
Thanks guys! bookmarking and reading.![]()
:-[ :-[
I am not able to get any scripts running at all. Even from the sample web pages.
Have even modified my profile to include in the path /bin/ksh and im not sure what is wrong.
Really frusterated not being able to even run sample scripts so i can see how it works or learn for that matter.
Any ideas? What additional info do you need? wnat me to paste my entire PATH here?
Did you make your scripts executable, like "chmod 755 myscript.sh"?
[quote author=cloverm link=board=9;threadid=4523;start=0#45835 date=1029438915]
Did you make your scripts executable, like "chmod 755 myscript.sh"?
[/quote]
Yes I did, did a chmod 0700 filename in habit of doing that.
if i run the script juts by typing in the filename it puts me back to the prompt.
if i try it by doing this....
ksh filename
i get this return..
ksh: test: 0403-006 Execute permission denied.
so not sure what is going on. This is sample script taking from webpage.
Thi s is not one i wrote myself, taken from above google search script page. second link. im presuming its correct otherwise they wouldn't show the example. but etither way it doesn't work on the unix server.Code:#!/bin/ksh if [[ $expr $(date +%H) \< 12) == 1 ]] then echo "Good Morning" else echo "Good afternoon" fi
??? ??? ???
Bookmarks