Search Results

Search: Posts Made By: gkelly1117
3,266
Posted By gkelly1117
Thanks alot for your input! Great help! I am...
Thanks alot for your input! Great help! I am however running into a new problem with your fix that happened without the continue, which is why I put it in first place.

See below the output after...
3,266
Posted By gkelly1117
When I run the script it looks for a nonprod or...
When I run the script it looks for a nonprod or prod server list conf file.

I run it like ./filepush nonprod so it gets the list right.
3,266
Posted By gkelly1117
Script to Push Files
Hey Guys, Thanks for always being helpful, I have another issue that I need a little insight on how to fix.

See the below script I have and the error I get. I don't understand why it does that, am...
6,303
Posted By gkelly1117
You're awesome thanks a lot!!!
You're awesome thanks a lot!!!
6,303
Posted By gkelly1117
The rm * bothers me as well. Any suggestions...
The rm * bothers me as well. Any suggestions would be greatly appreciated. I just want to delete the files after I have copied them to a back up directory and SFTP'd them over
6,303
Posted By gkelly1117
I got it to work finally. Below is finished...
I got it to work finally.

Below is finished product.

Thanks for all involved!

#!/bin/bash -x
source /opt/foobar/$1/config/usrconfig.sh

### foobar environment variables ###
export...
6,303
Posted By gkelly1117
Sorry about that, I will post proper errors that...
Sorry about that, I will post proper errors that can be used

---------- Post updated at 12:14 PM ---------- Previous update was at 12:13 PM ----------



No I want to send multiple files if...
6,303
Posted By gkelly1117
Thanks so much guys for your help! your input...
Thanks so much guys for your help! your input helped me get over my first hurdle, however another one arose that I am having issues with, and I am sure it has to do with how I coded this thing up.
...
6,303
Posted By gkelly1117
FTP Script Help!!
I am trying to write a script that allows me to check a directory for files that i will sftp to another server.

When the file is created it creates a .ready file that is supposed to signal a file...
Forum: Web Development 07-16-2014
2,083
Posted By gkelly1117
to fix this, I ended up creating a drupal.conf...
to fix this, I ended up creating a drupal.conf file in Apache and loading it up there. And it worked, I think there is a misconfiguration that wasn't allowing .htaccess to execute, but all the proper...
Forum: Web Development 06-19-2014
2,083
Posted By gkelly1117
Drupal 7 .htaccess issue
Good Afternoon my *nix friends.

I am having a issue with my Drupal site and the FilesMatch directive I use to deny access to certain core directories and files. :confused::confused:

It seems...
26,704
Posted By gkelly1117
no worries. in any case, i continued to use the...
no worries. in any case, i continued to use the 10# and was still unsuccessful.

i was told with the GNU Tools I can use date and do something like date --date="7 days ago"

anyone know the...
26,704
Posted By gkelly1117
with this in mind i would turn my variables...
with this in mind

i would turn my variables to ??

old_file()
{
local_dtcmp=`date -d "$1" +"%F"`; shift
local_dtcmp="$(( 10#$local_dtcmp ))"
local_today=`date -d "$*" +"%F"`
...
26,704
Posted By gkelly1117
so 10#in front of my variable for time stamps...
so 10#in front of my variable for time stamps would make it base 10 and eliminate the problem in its entirety?

going to try that now

---------- Post updated at 04:42 PM ---------- Previous...
26,704
Posted By gkelly1117
Value Too Great for Base Error, Explanation and Workout needed
Hey Friends, its me again! :o

I was asked to create a script that would go into our backup directories and delete/purge anything in the directory after a certain amount of days, normally I would...
3,955
Posted By gkelly1117
lol figures THANKS!
lol figures


THANKS!
3,955
Posted By gkelly1117
Thank you for the quick response. ok with...
Thank you for the quick response.

ok with that in mind, i created the below. however. i get a infinite looop.

what am i missing here?! :):confused::confused:


#!/bin/bash
#Written by:...
3,955
Posted By gkelly1117
Script to Ping Servers
Hey, It's me again! Still trying to learn to become a better scripter on the job :)

New challenge for assistance, if anyone cares to help, and its two parted! First part, I wanted to create a...
38,598
Posted By gkelly1117
Script to change Permissions on files and directories
Hey, It's me again.

Have a problem, that's not really a problem. I have the below script, that goes to the directory I want it to go to. lists out the directories available, lets you choose the...
11,718
Posted By gkelly1117
yeah, it happens on login as well, I went between...
yeah, it happens on login as well, I went between our other servers checking permisions on /etc/profile and doing diffs on the content and there seems to be nothing different.

Like I said it's not...
11,718
Posted By gkelly1117
Access Denied
I login to a server and get a Access Denied Prompt but I clearly lets me into the prompt with Putty.
I do a sudo -s enter my password tells me Access Denied but I am clearly now Root
Just wondering...
2,487
Posted By gkelly1117
Appreciate it alot, let me play with this a...
Appreciate it alot, let me play with this a little bit, question, Can I feed this multiple directories, I remembered I also have a tmp directory and files under ordata in a different structure tree...
2,487
Posted By gkelly1117
My apologies, that makes sense, I have changed...
My apologies, that makes sense, I have changed the title of the post to something more appropriate.

Also, I put comments in the code/query so people could understand my thought process, does it...
2,487
Posted By gkelly1117
Script to go Into Directories and Find/Delete files
I have a task, I usually do manually, but with growing responsibilities I tend to forget to do this weekly, I want to write a script that automates this, but I cant seem to work it out in my head, I...
6,047
Posted By gkelly1117
You sir are a Genius!! that worked perfectly. ...
You sir are a Genius!! that worked perfectly.

Thanks alot everyone for help. and thanks for the patience.
Showing results 1 to 25 of 34

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