on unix shell program

February 14, 2012 at 23:40:13
Specs: Windows XP
how to run shell and c program in unix environment(cmd)

See More: on unix shell program

Report •

#1
February 22, 2012 at 03:12:44
You can run shell programs by using the command

sh filename.sh

You can compile and run C programs using the commands

cc filename.c
./a.out


Report •

#2
August 4, 2012 at 04:42:22
You don't need to run "sh" before calling a shell script, things work just fine omitting another shell to be started up unnecessary.

Report •

#3
August 7, 2012 at 06:37:20
@u-man: If the shell isn't executable, then you have only the option that Sanjeev posted. Unless you are going to elaborate on an answer, perhaps you should refrain from commenting.

@antonyjute: You'll get better answers if you put a little more detail into your questions.


Report •
Related Solutions


Ask Question