Hi everyone,
I am new to UNIX and scripting, and I have some problems with the test command.
when i try to execute the command:
test 20070327.gz > 20070320.gz
i try to make a charachter string comparison between the two strings or the two files, to make sure that 20070327.gz is greater than... (2 Replies)
Hello,
I am trying to add some tests to existing code. The code already contains some test commands. An example is as follows...
] then
Does anyone know the purpose of the double equals? I would have used a single equals sign... (2 Replies)
I have been looking into searching various files to display output.
The search criteria will be a month and year to output various numbers in the files.
is there any way to do this with the TEST function or would it have to be another way? (4 Replies)
Plese help me on the below query.
for j in *.20071231* *.ctl *.dat
do
(
if then
cp "$base/*.*" "$base1"
fi
)
done
My requirement is for all files that has extension *.20071231* *.ctl *.dat
should be copied to another folder.
But those with caaa.20071231.log... (7 Replies)
I'm very new to C and could use a little help.
I'm testing to make sure the command is running as it's proper name, if not then fail.
if (strcmp(argv, "xinit") != 0) {
fprintf(stdout, "name = %s length = %d\n",argv,l);
usage(0);
}
This works if the command is... (3 Replies)
Hi all!
I'm new to shell scripting, and I need to do a diff between two dirs. One of them (dir_old) contains many files, and the other (dir_new) contains just a set of 8 files, all starting with MC and extension .CP.
The problem I have is that dir_old contains about 20 files that start with... (1 Reply)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
hello,
i'v trying to use the TEST command and i have some problems with it.
i am trying kill all proccess wich is greater than 25.
i started with - ps -f | grep -v TTY | awk '{print $4}'
but i dont know how to proceed from here..
10x a lot, Daniel. (11 Replies)
Could somebody please explain to me why and how the highlighted line(s) (?) of code puts the "test" evaluation into "result" and then to $enable_static ? Or does not ?
I did comment out the original code and changed it to what I feel is less cryptic , but the "result" is still wrong =... (3 Replies)
Discussion started by: anne
3 Replies
LEARN ABOUT DEBIAN
rush
RUSH(8) Gnurush RUSH(8)NAME
rush - a restricted user shell
SYNOPSIS
rush [-F STRING] [-f DIR] [-n NUM] [--forward] [-H]
rush {-v | -h | --usage}
DESCRIPTION
GNU rush is a restricted user shell (R-U-SH), designed for sites that provide only limited remote access to their resources. This could be
Subversion or Git repositories, upload sites accessible only by Scp, or similar services.
Using a sophisticated configuration file, GNU rush gives the administrator complete control over the command lines that users are able to
execute, as well as over the access to and usage of system resources. Usually virtual memory, CPU time, etcetera, are determined by this
system wide configuration.
OPTIONS -c COMMAND
Specify a command to run.
-C TEST | --security-check=TEST
Configure security checks for the main configuration file.
-d NUM | --debug=NUM
Set debugging level.
--show-default
Disply the built-in default configuration.
-t | --test | --lint [FILE]
Run in test mode. The optional argument FILE determines the location of an alternate configuration file to be used. In case also
the option '-c' is specified, then rush will emulate normal processing for the given command, but will not actually execute it.
-u NAME | --user=NAME
Emulate shell access by the user NAME. The option '--test' is implied. The use of this option is allowed only for root and in
conjunction with the further option '-c'.
-v | --version
Display program version.
-h | --help
Display a short help message.
--usage
Display a concise usage summary.
SEE ALSO
The full documentation for GNU Rush is maintained as a Texinfo manual. If the info and rush programs are properly installed at your site,
the command
info rush
should give you access to the complete manual.
See also rushlast(1) and rushwho(1).
AUTHOR
This text was written by Mats Erik Andersson for the Debian project, since the original source supplies a documentation only in the form of
a GNU Texinfo manual.
GNU Rush 1.7 December 2010 RUSH(8)