Search Results

Search: Posts Made By: humble_learner
3,989
Posted By humble_learner
Yeap it is at home. For static IP or port...
Yeap it is at home. For static IP or port forwarding my ISP require me to opt for Business internet which is very expensive. Since I'm reaching out to the hosting server I was under the impression...
3,989
Posted By humble_learner
Script to transfer backup from Hosting server to my synology server one account at a time.
Hi Linux/Unix pros,

I'm need to create a script and here's what it need to do:

1. SFTP to my Hosting Server (Linux) sftp user@hostingserver.com
2. Backup website accounts 1 at a time (This is...
2,238
Posted By humble_learner
Hi Rudic, Thank you for the answer, I just...
Hi Rudic,

Thank you for the answer, I just had to modify a bit in order to cover years past 2018 but your answer was correct.

rm -rf $(ls -ld [0-9][0-9][0-9][0-9]* | head -1


For your...
2,238
Posted By humble_learner
Delete oldest folder based on folder named as date
Hi,

I have a script doing backup to synology server, the script create new folder each day with the date as being folder name i.e. 2018-07-30. Just before creating the new folder I want the script...
2,545
Posted By humble_learner
@peasant, Thank you for the solution,...
@peasant,

Thank you for the solution, worked smoothly.

---------- Post updated 06-08-18 at 09:15 AM ---------- Previous update was 06-07-18 at 02:23 PM ----------

Also thanks to 2 other...
2,545
Posted By humble_learner
Bash script to take cPanel backup in batches
I'm trying to resolve the below scenario by writing bash script.

On my managed linux server I have about 30 accounts and there is not enough space to generate full 30 accounts backup in one go and...
1,555
Posted By humble_learner
Sorry about that, The menu is displayed as...
Sorry about that,

The menu is displayed as soon as you ssh to any host without issuing any command, it is shown on the standard out, if we issue a return key than the default no 1 is selected.
...
1,555
Posted By humble_learner
Hi Rudi, That menu is displayed whe I ssh to...
Hi Rudi,

That menu is displayed whe I ssh to any host from a dedicated host in our environment. Once the menu is displayed then I have to select the number corresponding to the instance that I...
1,555
Posted By humble_learner
Modifying listener file
Hi Pros,

I'm writing a script to modify listener.ora file on multiple hosts. When I ssh to any server from a central server in our environment we are presented with menu to select the instance. I...
4,878
Posted By humble_learner
Hi everyone, thanks for your help. A collegue...
Hi everyone, thanks for your help. A collegue helped me and it works with this code

#!/bin/ksh
echo
cat test |
while IFS="_ " read LUSER LDATE
do
Day=`echo $LDATE | cut -c1,2`
...
4,878
Posted By humble_learner
Anyone can provide any hint as to what could be...
Anyone can provide any hint as to what could be wrong? Thanks

---------- Post updated at 02:45 PM ---------- Previous update was at 02:37 PM ----------

Sorry here's the actual script, yes I...
4,878
Posted By humble_learner
Hi guys, for some reason I kept getting the...
Hi guys, for some reason I kept getting the following error when I run the test script.

#!/usr/bin/ksh
while IFS="_ " read LUSER LDATE
do
if [ $(( $(date +%s) - $(date +%s...
4,878
Posted By humble_learner
It worked
@RudicC

This is great, it worked like a charm after a little modification. Where are we setting the 50 days? in case I need to adjust the days.


Thanks a lot
4,878
Posted By humble_learner
Ksh: Read line parse characters into variable and remove the line if the date is older than 50 days
I have a test file with the following format, It contains the username_date when the user was locked from the database.

$ cat lockedusers.txt
TEST1_21062016
TEST2_02122015 ...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 03:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy