I am new to this site and ksh scripting. I am trying to run the following code on cygwin on windows 7 but it keeps giving me syntax error. For some reason, it works on my buddies comp but not on my laptop. Done anyone know whats going on here?
Code:
#!/usr/bin/ksh
TXTFILE="sourcefile.txt"
#SIDN=4567
cat $TXTFILE | grep -v "#"| while read R1D
do
echo ${R1D}
done
=========================
Code:
$ ./hello.ksh
: not found[2]:
./hello.ksh[11]: syntax error: 'done' unexpected
=================================
Code:
$ type ksh
ksh is hashed (/usr/bin/ksh)
Last edited by vbe; 09-15-2011 at 02:52 PM..
Reason: use code tags please...
hi everyone. i have a problem on installing binary file in my cygwin. could anyone help me wat command should i use to install it ?
thanks a lot (4 Replies)
i am completely new to unix and am trying to learn with cygwin.
my problem is simple....
when i use the 'man' command, eg 'man cat'
id do not know how to get out of the manual!!!?
if i type '!' and Return,
rather than having just the $ prompt, it has 'sh-3.2$' as a command prompt.... (1 Reply)
hello ... i am new with cygwin ... and i want you to help me. ...
First of all, i want to determine the steady state stream function in a 2-D duct using a square mesh by using the finite-difference methodology and i want to simulate it....and i read a lot of information at... (1 Reply)
I started to gather some stats from our windows servers through the use of cygwin and sshd :)
is anyone else doing this sort of thing?
interested in some other indicators I should be checking for...
thanks,
manny
the following is only an example of the type of data I am able to... (4 Replies)
Hey there,
I´m new to unix and unix.com, so thats my first question :)
Does anybody know if theres a version of Samba which supports Windows7 without changing the LAN-Manager-Authentification to LM&NTLM-Answers?
Hope someone has an answer...
greets from Berlin :) (1 Reply)
Hi Friends,
I have windows7 in my system and I installed vmware having ubuntu OS, I am able to work in both independently.
But I want to share some text file from WINDOWS7 to the vmware ubuntu,
I tried and able to ping vmware(ubuntu) ipaddress from windows7 and vice-versa.
But when... (0 Replies)
I'm using cygwin on win7, What I would like to do is something like this:
cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e
I know I can start a new instance using either of these:
mintty -e ...
cygstart tail ...
But neither of those open in ANSI mode, so I can't do... (0 Replies)
Can anyone tell the steps to download and install unix OS in windows 7 32 bit. I want to install unix and practice commands there. Any version is ok (4 Replies)
Discussion started by: Little
4 Replies
LEARN ABOUT SUSE
suspend
suspend(1) User Commands suspend(1)NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)SunOS 5.10 15 Apr 1994 suspend(1)