All Questions
69
questions
2
votes
1
answer
1k
views
Delete old files x days and send email if its done
I have a script that works removing files x days and keep the folders.
I'm trying to send an email once its done with the deletion. Any advice? Current script is below:
#!/bin/bash
find /testftp/* -...
46
votes
7
answers
138k
views
How to automatically run commands on SSH login?
Whenever I login to my Linux server I'd like to have several commands run automatically (set some variables, change location, etc.)
This needs to be done on user login, not on system start.
How can ...
0
votes
2
answers
2k
views
How to ssh linux when the shell is changed or crashed, but still need to have access remotely?
I have remote location Linux running (CentOS 6.0). It has dynamic ip address so i installed noip2 service and copied the file cp redhat.noip2.sh /etc/profile.d/noip.sh.
Here you can see the noip.sh ...
1
vote
1
answer
2k
views
Can't install subversion over yum
How to install using yum ?
Because when I tried this :
yum install gcc gmake make libcpp libgcc libstdc++ gcc4 \
gcc4-c++ gcc4-gfortran subversion ruby ncurses-devel -y
Subversion did not install , ...
2
votes
5
answers
2k
views
why do I need the "sudo" in this particular command?
sudo yum install automake libtool flex bison pkgconfig gcc-c++
boost-devel libevent-devel zlib-devel python-devel ruby-devel
for installing required packages for Thrift on CentOS 5..
is it ...
2
votes
3
answers
2k
views
Execute a command after sudo
The Background
I am working in a CentOS environment with numerous CentOS machines. Currently there are multiple developers that each have their own login/home directory and then for various admin ...
1
vote
1
answer
1k
views
Couldn't create error file for command: no such file or directory
When launching tclsh, I am getting this error message:
couldn't create error file for command: no such file or directory
Can't find out what causes this to happen. How to fix this issue?
My host ...
2
votes
1
answer
2k
views
Bash Script Exits su or ssh Session Rather than Script
I am using CentOS 5.4. I created a bash script that does some checking before running any commands. If the check fails, it will simply exit 0. The problem I am having is that on our server, the ...
2
votes
2
answers
7k
views
how to change the color of the terminal
I'm using CentOS 4.8. I like the grey background color and the black foreground color,by which my eyes wouldn't sore.
when I set 'export PS1="\e[0;30m\e[47m\u@\h \w>"' , It only changes the bash ...