At /home/me/bin I've got a script called fg. The meat of it is:
find . -name "$1" | xargs grep $2
The intent is to call it as "fg file_pattern search_pattern" and search all matching files. I've added the directory to my path and made the file executable, but when I try to use it I get
... (3 Replies)
Hello this my first post, so i hope you help me
echo -n "Choose which square you want to hit of PL2 grid "
set pl2_square = $<
set i = 1
while ($i <= 6)
if ($pl2_square == $pl2_ships) then
$pl2_ships = x
echo ""
echo ""
echo "PL1 has hitted a square of PL2"
echo... (5 Replies)
Hello everybody,
Im being unsuccessful to enable command history logging in csh shells on a Sun machine running Solaris 9, I know csh doesnt log commands history by itself,
here under is my /.cshrc file:
# @(#)cshrc.standard 1.1 Copyright 1994, Motorola Inc.
if ( -e /.datagen_system )... (8 Replies)
Hi
I like to assign a command string to a variable to execute.
In this case,
set sshexec_parent_pid="ps -ef | grep $$ | awk '/bash -c/ {print $3}' | sort | head -1;`"
echo $sshexec_parent_pid ;
But I can't seem to get it to work.
It gives me
sshexec_parent_pid: Undefined variable.
... (2 Replies)
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
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)
I am using this code
echo "opt_tpath = $opt_tpath"
if ($opt_tpath == 1) echo " -tpath = $Atpath\n"
and is giving
opt_tpath = 0
Atpath: Undefined variable.
Atpath should only be printed in opt_tpath == 1 but it still tries to print.
---------- Post updated at 10:05 AM ----------... (1 Reply)
Hi All,
Could any one of you give me a hand to convert the following line of codes from .sh to .csh please ?
proc_id=`fuser /tmp/test`
if
then
echo "File is not being used by any thing"
fi
if
then
echo "File is being used... please wait"
sleep 1
fi
Regards. (1 Reply)
CSH experts
What does the following do in CSH?
:(){:|:&};:
I was asked the question, but I don't know. I'm not aware of the context.
Any ideas?
Thanks! (1 Reply)
Discussion started by: wallg
1 Replies
LEARN ABOUT PLAN9
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)