Skip to main content

All Questions

Tagged with
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/* -...
JoyIan Yee-Hernandez's user avatar
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 ...
Alasdair's user avatar
  • 867
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 ...
YumYumYum's user avatar
  • 1,685
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 , ...
Naughty.Coder's user avatar
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 ...
algorithmicCoder's user avatar
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 ...
nsfyn55's user avatar
  • 183
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 ...
arepo21's user avatar
  • 21
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 ...
Russ Bradberry's user avatar
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 ...
user avatar

15 30 50 per page
1 2 3 4
5