10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
For the sake of not going insane and not buggering a load of needed system stuff, I have created a dir /mybin. (This is a Debian system.)
I have then edited the /etc/profile and /etc/login.defs files and added :/mybin to all of the path variables. I have the file /mybin/mtp for... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies
2. Shell Programming and Scripting
Recently I lost a number of changes I made to a program when the SCO Unix system went down. The system "mail" suggested a "vi -r" option that took me back several days. To prevent this in the future, I am trying to create my own vi command:
if
then
cp -p $1 $1.bak
fi
/usr/bin/vi $*
if ... (5 Replies)
Discussion started by: wbport
5 Replies
3. Shell Programming and Scripting
Hi I am using MKS Toolkit c shell.
I want to basically check if my PATH variable already contains a certain path directory so I tried this (it didnt work!): if: Expression Syntax
if ( echo $path |grep -c c:/PROGRA~1/blah/blah ) then
please help me get this little statement to work.
... (3 Replies)
Discussion started by: vas28r13
3 Replies
4. Shell Programming and Scripting
Hi folks,
I'm trying to define the following command as alias in .cshrc file:
ls -ltr | grep ^d | awk '{print $9}' | xargs du -hs
I defined it as the following:
alias nirdirs '`ls -ltr | grep "^d" | awk "{print \\$9}" | xargs du -hs`'
I've got the following error when I've run the alias:... (7 Replies)
Discussion started by: nir_s
7 Replies
5. Shell Programming and Scripting
Hello everyone,
I write a ~/.cshrc for set class path to run my java application. The file is listed below.
setenv YFILTER_HOME ~/yfilter-2.0
setenv PATH "$YFILTER_HOME/bin:$PATH"
setenv CLASSPATH... (1 Reply)
Discussion started by: perl0101
1 Replies
6. Infrastructure Monitoring
On one of the machines at work, we had Net-SNMP 5.2.3 installed, and I wanted to upgrade that to 5.4.2.1. So I downloaded the tar file, extracted it, did the configure, make, make test, make install, and everything worked.
All the executable files (like snmpget, snmpset, snmpwalk) got copied to... (1 Reply)
Discussion started by: sllinux
1 Replies
7. UNIX for Dummies Questions & Answers
I am setting my PATH & LD_LIBRARY_PATH through .cshrc file while sourcing it on a old shell i am getting the error word too long .and the changes which i anm doing doesn't get updated .
i am in a multi user environment so the only way to do the changes only for my shell is to do it that way.
... (1 Reply)
Discussion started by: mobydick
1 Replies
8. UNIX for Advanced & Expert Users
Hi
i am writing a script containing processing commands which are reside in /opt/terascan/bin dir. if i run the script from command prompt it is working fine. but in crontab it is not working.
if i give env command from command prompt it is showing /opt/terascan/bin dir in PATH variable.
... (10 Replies)
Discussion started by: rajan_ka1
10 Replies
9. Shell Programming and Scripting
hi ,
i have written csh script i am unable to set PATH variable in my script.
my script is like this
=====================================
# ! /bin/csh -f
setenv PATH "$PATH:/opt/terascan/bin"
ls -l > list
lspass > pas
peekauto > schedule \
num_days = 1 \
exit 0... (1 Reply)
Discussion started by: rajan_ka1
1 Replies
10. UNIX for Dummies Questions & Answers
Hello everyone,
I'm a unix noob. I have a powerbook running mac os x 10.4 and for one of my classes I need to install the latest version of php (5.0.5). I'm following the instructions at http://developer.apple.com/internet/opensource/php.html to install but I've run into a problem.
The... (2 Replies)
Discussion started by: kendokendokendo
2 Replies