03-16-2011
Quote:
Originally Posted by
Corona688
Would you be willing to accept # instead? Shell doesn't execute things that begin with # anyway.
Thanks for your reply.
Here my aim is -- i have to prevent the users from executing
some commands using backslash in the command prompt.
Here i am not executing any shell scripts.
subbu
---------- Post updated at 02:06 PM ---------- Previous update was at 02:05 PM ----------
Thanks to Corona
Here my aim is -- i have to prevent the users from executing
some commands using backslash in the command prompt.
Here i am not executing any shell scripts.
subbu
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I wish to learn how to use the alias command in .cshrc
I need to change some Unix commands, like :
change "rm -f " into "rm -i "
or to write small scripts using alias. (7 Replies)
Discussion started by: kamil
7 Replies
2. Shell Programming and Scripting
Hi, I'm running into following issue, my_file is a collection of windows directories (i.e \\path\directory\file) . I need to be able to execute "my command" as
my command \\path\directory\file
I know that while read -r / print -r ignores backslashes.
My code:
cat $my_file | while read -r... (6 Replies)
Discussion started by: agalkin
6 Replies
3. UNIX for Dummies Questions & Answers
When I run my script in debug mode I see that \ is not getting executed as part of command. It is being treated as escape character.
find ${DATABASE_PARAM_PATH} -mtime +${RETENTION_PERIOD} -exec rm -rf {} \;
Command execution output in debug mode :
find... (1 Reply)
Discussion started by: findprakash
1 Replies
4. UNIX for Dummies Questions & Answers
In unix when I run rm command, it asks for file removal confirmation e.g.
rm netmail_log.csv
rm: remove netmail_log.csv (yes/no)? n
But if i prefix backslash to rm it does not ask for confirmation. Does anyone know what backslash does to command or shell ?
e.g.
\rm netmail_log.csv (1 Reply)
Discussion started by: Devdatta
1 Replies
5. Shell Programming and Scripting
Hello Firends
I have a file that contains data within single quotes, which has meaning of its own. When I am trying to parse through the file for a different functionality I noticed that I was loosing the backslash when occurrences in the file look like ('\0'). I would want to retain the... (3 Replies)
Discussion started by: easwam
3 Replies
6. Shell Programming and Scripting
I have created with the DOS-command dir a list of a directory.
Directory of C:\Users\User\Documents
09.06.2011 20:50 48.322 file1.txt
02.11.2010 23:00 9.216 file2.txt
15.12.2010 21:06 26.793 file2.txt
Now i would like to add the directory ahead of the filename. Therefore a... (6 Replies)
Discussion started by: sdf
6 Replies
7. Red Hat
Hi,
I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies
8. UNIX for Dummies Questions & Answers
I have text file which is a tab delimited one. Sample data from the file is shown below:
unix is\ great\ os
linux\ is superb
I want to replace that backslash with empty string preserving the tab delimiter. Output should be
unix is great os
linux is ... (3 Replies)
Discussion started by: p.akhilreddy4u
3 Replies
9. OS X (Apple)
Googling suggested "osascript -e 'set volume 0' " but that doesn't work.
I know I'd found this before... some command-line utility that had something to do with audio, mixers, whatever, but I forgot to keep it somewhere I could find it. I did find references to writing an AppleScript app, but... (3 Replies)
Discussion started by: jnojr
3 Replies
10. AIX
I need to disable a command. For example - disabling "ls" means that when someone type "ls" - nothing happens .
Somebody help ???? :confused::confused::confused: (8 Replies)
Discussion started by: bobochacha29
8 Replies
uux(1c) uux(1c)
Name
uux - unix to unix command execution
Syntax
uux [-] command-string
Description
The command gathers 0 or more files from various systems, executes a command on a specified system, and sends standard output to a file on
a specified system.
The command-string is made up of one or more arguments that look like a shell command line, except that the command and file names may be
prefixed by system-name!. A null system-name is interpreted as the local system.
File names may be one of the following:
o A pathname
o A pathname preceded by ~xxx, where xxx is a userid on the specified system and is replaced by that user's login directory
o Any other syntax that is prefixed by the current directory.
For example, the following command line gets the f1 files from the usg and pwba machines, executes a command and puts the results in
f1.diff in the local directory.
uux "!diff usg!/usr/dan/f1 pwba!/a4/dan/f1 > !f1.diff"
When using special shell characters such as <>'!, you should either quote the entire command-string, or you should quote the special char-
acters as individual arguments.
The command attempts to get all files to the execution system. If both the file and command are located on different remote sites, the
file is first brought to the local system and is then transferred to the execution system.
If you want to include files as arguments to a command, but you do not want those files to be processed by enclose the filename in paren-
theses. For example:
uux a!uucp b!/usr/file (c!/usr/file)
The previous example sends a command to system The is transferred from system to the local system, and then is passed to system When
arrives at system the command executes and sends to system
If the request is not allowed on the remote system, the command notifies you. This response is sent through remote mail from the remote
machine.
Options
-c, -l
Do not copy local file to the spool directory for transfer to the remote machine. This is the default.
-ggrade
Specifies the grade which is a single letter or number from 0 to 9, A to Z, or a to z. The highest grade is 0, the lowest grade is z.
The default is A. Lower grades should be specified for high-volume jobs, such as news.
-n Sends no notification to user.
-p, -
Reads stdin.
-r Queues the job, but does not start the file transfer.
-xdebug
Produces debugging output on stdout. The debug option is a number between 0 and 9. Higher numbers provide more detailed information.
Debugging is permitted only for those users with read access to
-z Notify the user if the command fails.
Warning
An installation may limit the list of commands executable on behalf of an incoming request from Typically, a restricted site permits little
other than the receipt of mail through
Restrictions
Only the first command of a shell pipeline may have a system-name!. All other commands are executed on the system of the first command.
The use of the shell metacharacter asterisk (*) shell metacharacter may not behave as you expect. The shell tokens (<< >>) are not imple-
mented.
You are not notified when execution on a remote machine is denied. Only commands listed in on the remote system are executed at the remote
system.
Files
/usr/spool/uucp spool directory
/usr/lib/uucp/* other data and programs
See Also
uucp(1c)
"Uucp Implementation Description" ULTRIX Supplementary Documents Vol. III: System Manager
uux(1c)