this command display how the command sh is inpterpreted.
From bash man page :
Quote:
type [-aftpP] name [name ...]
With no options, indicate how each name would be interpreted if used as a
command name. If the -t option is used, type prints a string which is one
of alias, keyword, function, builtin, or file if name is an alias, shell
reserved word, function, builtin, or disk file, respectively. If the name
is not found, then nothing is printed, and an exit status of false is
returned. If the -p option is used, type either returns the name of the
disk file that would be executed if name were specified as a command name,
or nothing if ``type -t name'' would not return file. The -P option forces
a PATH search for each name, even if ``type -t name'' would not return file.
If a command is hashed, -p and -P print the hashed value, not necessarily
the file that appears first in PATH. If the -a option is used, type prints
all of the places that contain an executable named name. This includes
aliases and functions, if and only if the -p option is not also used. The
table of hashed commands is not consulted when using -a. The -f option sup‐
presses shell function lookup, as with the command builtin. type returns
true if any of the arguments are found, false if none are found.
Display environment variables whith name ending with ENV.
See INVOCATION section of the bash man pages.
Hi,
Before I start, I would like to inform that, I went through all FAQs and other threads before posting here.
I 'm trying to schedule a shell script on cygwin using cron. No matter what I do I don't seem to get the cron job executing my bash script.
My script is temp.sh
echo `date` >... (4 Replies)
Hi,
I installed Cygwin y'day on Win XP SP2.
The install went fine but when I clicked on Cygwin's shortcut to invoke its shell, it didn't come up.....was just opening for a fraction of second and then closed.
Can anyone please advise?
Regards
er_ashu (6 Replies)
Hi everybody,
I would like to execute a shell in windows. So I installed Cygwin but I got this message :
$ sh /neuf.sh
start
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 ... (4 Replies)
Hi,
I have a cywin test script as below but errors,
#!/usr/bin/bash
while
do
echo "123"
echo "456"
done
sh-3.2$ ./test.sh
./test.sh: line 7: syntax error: unexpected end of file
Please help...
Thanks!
Victor (3 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)
I am new to shell scripting.
I tried to run a simple shell script using Cygwin terminal in Win XP env.
The script I have written is as follows -
#!/bin/bash
a=5
] && echo "true" || echo "false"
But when I execute the script, getting some confusing error. The error I am getting are - ... (3 Replies)
Hello,
Cygwin will execute a shell script without turning on executable status on the file.
I want to force cygwin to be more like linux and not execute scripts directly on the command line unless changing mode to have executable status.
Is this possible?
Thanks
Larry (2 Replies)
I have a file with below format :
2013-05-20 hello
has done
2013-05-20 hi
000abc
abc
2013-05-21 thank you
I want the out put to be like this :
2013-05-20 hello has done
2013-05-20 hi 000abc abc
2013-05-21 thank you
What I could think of is something like this :
cat... (7 Replies)
I have cygwin installed on windows server and when I do
echo $SHELL the output is
/bin/bash
I have created a ssh tunnel from this windows server through cygwin to ibm -i series which is running Q-shell.
I am trying to invoke a utility wsadmin (used for scripting) on ibm-i from the... (12 Replies)
Hi All,
We have shell scripts in UNIX ( Sun OS ) server.
Also in my windows machine i have Cygwin installed.
Now is there a way to execute Shell script available in UNIX server from Cygwin? (4 Replies)