The exclamation mark might be a problem. Escape it like you did the space.
Also, empty out or trim or optimize or remove /etc/csh.cshrc, /etc/csh.login, $HOME/.cshrc, $HOME/.login, $HOME/.tcshrc, $HOME/.history
Finally, it's possible csh is so under-used that it's never in the OS's file cache or that there's a disk error on the track locating the executable code.
I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Hi,
1. How to Write csh CGI-BIN script which return a web page which show the environment of the executed script ?
2. How do we read command line on csh and ksh ?
Thank's (2 Replies)
Hey everyone,
A coworker of mine has written a csh script that starts with #!/usr/bin/csh -f. It's my understanding that the -f should skip the .cshrc and .login files, but here's the problem: In the script "line" is used, and I happen to have a "line" in my ~/bin. When the script is ran my... (4 Replies)
Hi,
I have a problem I don't understand with fuser.
I launch a simple shell script mysleep.sh:
I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted:
mysleep:
Then I modify my script switching from #!/bin/sh to #!/bin/ksh
I launch the command fuser -fu... (4 Replies)
Hi,
I have a script which I need to modify. It contains the following statement at the beginning -
1. What does this mean ?
#!/bin/csh -f
2. If I run the following code in a script on C SHELL it runs normally.
host=0
if ; then
host="<<something>>"
fi
But, in the script... (7 Replies)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Hi,
I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2).
The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin.
Is... (4 Replies)
I tried to source the csh file into the bin/sh(input file is srcinput.sh ).
Its(csh -f ...csh) not working.
I tried to source like csh -f D:/sample/expand/env.csh
env.csh sets the environment and it source another .csh file using
source fname.csh.
fname.csh it sets one... (2 Replies)
Some question about the usage of shell scripts:
1.) Are the commands of the base shell scripts a subset of bash commands?
2.) Assume I got a long, long script WITHOUT the first line.
How can I find out if the script was originally designed für "sh" or "bash"?
3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
LEARN ABOUT OSF1
environ
environ(5) File Formats Manual environ(5)NAME
environ - User environment
SYNOPSIS
extern char **environ;
DESCRIPTION
An array of strings called the environment is made available by the execve() function when a process begins. By convention these strings
have the form name=value. The following names are used by various commands: A startup list of commands read by ex, edit, and vi. A user's
login directory, set by login from the password file passwd. The sequence of directories, separated by colons, searched by csh, sh, sys-
tem, execvp, etc, when looking for an executable file. PATH is set to :/usr/ucb:/bin:/usr/bin initially by login. The name of the default
printer to be used by lpr, lpq, and lprm. The full pathname of the user's login shell. The kind of terminal for which output is to be
prepared. This information is used by commands, such as nroff which may exploit special terminal capabilities. The string describing the
terminal in the TERM environment variable, or, if it begins with a / (slash), the name of the termcap file. See TERMPATH below. A sequence
of pathnames of termcap files, separated by colons or spaces, which are searched for terminal descriptions in the order listed. Having no
TERMPATH is equivalent to a TERMPATH of $HOME/.termcap:/etc/termcap. TERMPATH is ignored if TERMCAP contains a full pathname. The login
name of the user.
Further names may be placed in the environment by the export command and name=value arguments in sh, or by the setenv command if you use
csh. It is unwise to change certain sh variables that are frequently exported by files, such as MAIL, PS1, PS2, and IFS.
SEE ALSO
Functions: exec(2), system(3)
Commands: csh(1), ex(1), login(1), sh(1)environ(5)