11-13-2005
Quote:
Originally Posted by sekar sundaram
write a program, give chmod -577 program, set the PATH variable with program's path.
after that we can run the program from anywhere.. i think its correct..
You can emulate this by messing with PATH and PATHEXT. Start your search from here:
http://aspn.activestate.com/ASPN/doc...ent_of_the_she
10 More Discussions You Might Find Interesting
1. IP Networking
Hi
Does any body know how i can run a program at bootup?
I have squid (cache server) installed on my PC but after boot up i should
run it manually but i want it to run automaticly is there a way?
I used to do it by entering the address ina file but i've forgotten it now.
But i remember that ... (2 Replies)
Discussion started by: hessam
2 Replies
2. UNIX for Dummies Questions & Answers
I have aquired the dutties of looking after our MRP system
We have a HP 9000D running Unix With MINX as tha MRP system
Our last IT System adim. had crashed the system before he left
and sense then we have not been able to log on to the system at the console or remotely. tha error reads minx... (6 Replies)
Discussion started by: bstrin
6 Replies
3. UNIX for Dummies Questions & Answers
Please I need your help.
I want to run remotely a unix shell that run a java process, from a Visual Basic Client.
Thanks
mac33
:) (4 Replies)
Discussion started by: mac33
4 Replies
4. Shell Programming and Scripting
Hi,
I need to execute a Windows command from UNIX crontab ( or similar utility). We are evaluating the schedular applications that will easily solve this issue although it will be a while by the time the tool selection happens and I need something to implement this solution in the iterim.
... (1 Reply)
Discussion started by: ashpon
1 Replies
5. Shell Programming and Scripting
Hi Everyone,
Perl command syntax that would display my ... C:\dir ....
Regards,
asabzevari (1 Reply)
Discussion started by: asabzevari
1 Replies
6. Shell Programming and Scripting
Hi Guys,
I need to count files in a dir which were updated yesterday.
ls -lth | grep -i 'Jul 7' | wc -l
The dir holds files of last 15 days and total count is as 2067476.
Is it efficient to count the files using perl? I have developed the following perl script making use of system().
Can... (3 Replies)
Discussion started by: Asteroid
3 Replies
7. Homework & Coursework Questions
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies
8. Shell Programming and Scripting
I'm writing a Perl script which has its 1st step as to copy files from one directory to another directory. The Source directory has got files with extension, without extension, directories etc. But I want to copy ONLY files with no extension. The files with extensions and directories should not get... (2 Replies)
Discussion started by: jhamaks
2 Replies
9. UNIX for Beginners Questions & Answers
Greetings!
Been a while since I futzed around with Perl, and came upon a minor headscratcher for the community ;)
Here's the basic code which I'm trying to make tick over:#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
print " starting ";
while (-e "~/.somedir/testFile")... (9 Replies)
Discussion started by: LinQ
9 Replies
10. Shell Programming and Scripting
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade.
I have:
if ( $response =~ m/^/ ) {
$user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
FILECAP:(8) System Administration Utilities FILECAP:(8)
NAME
filecap - a program to see capabilities
SYNOPSIS
filecap [ -a | -d | /dir | /dir/file [cap1 cap2 ...] ]
DESCRIPTION
filecap is a program that prints out a report of programs with file based capabilities. If a file is not in the report or there is no
report at all, no capabilities were found. For expedience, the default is to check only the directories in the PATH environmental variable.
If the -a command line option is given, then all directories will be checked. If a directory is passed, it will recursively check that
directory. If a path to a file is given, it will only check that file. If the path to the file includes capabilities, then they are written
to the file.
OPTIONS
-a This tells the program to show all capabilities starting from the / directory. Normally the PATH environmental variable is used to
show you capabilities on files you are likely to execute.
-d This dumps all capabilities for reference.
EXAMPLES
To check file capabilities in $PATH:
filecap
To check file capabilities of whole system:
filecap -a
To check file capabilities recursively in a directory:
filecap /usr
To check file capabilities of a specific program:
filecap /bin/passwd
To list all possible capabilities:
filecap -d
To set a file capability on a specific program:
filecap /bin/ping net_raw net_admin
SEE ALSO
pscap(8), netcap(8), capabilities(7).
AUTHOR
Steve Grubb
Red Hat March 2009 FILECAP:(8)