Search Results

Search: Posts Made By: jzacsh
5,983
Posted By jzacsh
manpath errors -- standard way to set? does anyone even use it anymore?
Hello I'm finding a lot of results come up in google about manpath but none of them seem to help. I would like to add some files to my man path so that I can type things like `man -k fluxbox` and...
Forum: Web Development 02-10-2010
3,038
Posted By jzacsh
Symbol Links amongst Apache's served files, is this a security-don't?
I read somewhere that you should make sure Apache is configured to not allow symbolic links to be followed outside the webroot, as this can compromise security.

I can imagine how this could lead...
Forum: Programming 10-24-2009
4,352
Posted By jzacsh
Python converted from /bin/sh shell - backup script.
Hello, I have a shell script I wrote in /bin/sh to backup my web sever. I am now on a host (someone reselling rackspace server hosting to me) and when setting up cron, it actually has a dropdown list...
3,871
Posted By jzacsh
recurssion via symbolic links without allowing system to act recursively?
I tried looking up combinations of the keywords "infinite loop links" in google before causing a recurring post here... but alas, I couldn't find much.

Cause: I've created an infinite loop, in a...
Forum: Web Development 07-05-2009
8,712
Posted By jzacsh
anyone fairly experienced with Apache??? Document Root Fiddling?
I actually considered using a link. I don't know why, but I just assumed that apache wouldn't play well with a link.


Well, this could be a work around. The only problem/reason its a work around...
Forum: Web Development 06-30-2009
8,712
Posted By jzacsh
bash script editing my apache config files
okay i'm going to try to say this uber-simple:

I use dropbox (file-sync service). in order for dropbox sync files, they must be its children [eg. somewhere under /home/jzacsh/Dropbox].
I want to...
Forum: Web Development 06-30-2009
37,335
Posted By jzacsh
i think its funny that no one voted for safari. i...
i think its funny that no one voted for safari. i don't like safari much. firefox does the job for me
4,054
Posted By jzacsh
Gumblar Took Over - Remove Strings
Thanks, but I just can't seem to figure out how to use fgrep to do what I want.

I need to remove all malicious lines of crap inserted by Gumblar. My site doesn't use any iframes, and gumblar...
4,054
Posted By jzacsh
wait a second - i just realized all of my work is...
wait a second - i just realized all of my work is really pretty pointless and might be done in a single line.

what would anybody say is the easiest way to:
given a directory of files and...
4,054
Posted By jzacsh
Delete same lines out of file.
hello... I have a file with a list of filepaths in it, like so:

delMe.txt (files to be deleted)

./root/index.php
./root/language/se/home.inc.php
./root/language/pl/home.inc.php
Now here's...
Forum: Web Development 06-04-2009
10,389
Posted By jzacsh
wow that's amazing! (I had been trying that...
wow that's amazing! (I had been trying that previously, when I had the --password syntax incorrect). Thank you so much for sticking around! I'll be finishing a book soon on PHP & MySQL and a 2-part...
Forum: Web Development 06-03-2009
10,389
Posted By jzacsh
aah! thank you. okay, this is now what I get: ...
aah! thank you. okay, this is now what I get:

mysqldump: Got error: 1044: Access denied for user 'jzacsh_jzacsh'@'localhost' to database 'jzwp' when selecting the database
-- MySQL dump 10.11
--...
Forum: Web Development 06-03-2009
10,389
Posted By jzacsh
Thanks! I did just that, and got the following...
Thanks! I did just that, and got the following error (which, allow me to preface, I've been having similar errors trying to make a small test site on my server of Drupal)

Enter password:...
Forum: Web Development 06-02-2009
10,389
Posted By jzacsh
okay, done. didn't seem to make a difference :(...
okay, done. didn't seem to make a difference :( (the file still comes out 0 B, just uncompressed)

test.php output:


# BEGINNING DATABASE BACKUP PORTION:
Checking if sql backup landing...
Forum: Web Development 06-02-2009
10,389
Posted By jzacsh
Thanks so much for your help. I'm trying to test...
Thanks so much for your help. I'm trying to test this out on my personal live website's wordpress database first. so I uploaded a test.php file to run the shell script, like so:

test.php
<?php
...
Forum: Web Development 06-02-2009
10,389
Posted By jzacsh
Thanks for the reply!! good point, I...
Thanks for the reply!!


good point, I realize that though and I only had ./ in place as something temporary as I do manual tests (easier to type out for testing)


Thank you, I had failed to...
Forum: Web Development 05-29-2009
10,389
Posted By jzacsh
Confused maybe about MySQL Dump & PHP
Hello. the purpose of my efforts right now are to get a larger script of mine (which the admin told me he'd put into cron for me) to properly back-up my MySQL database. To test out the sql back-up...
13,085
Posted By jzacsh
I've attached a screen shot of how vi shows the...
I've attached a screen shot of how vi shows the line numbers (on the left-hand side), so that you can understand that the place in this line that you might see the text wrap is not the same place my...
13,085
Posted By jzacsh
OH no! you called it from the beginning...
OH no! you called it from the beginning (https://www.unix.com/shell-programming-scripting/109978-lack-understanding-annoying-error.html#post302317384) but I thought the vi editor which showed line...
13,085
Posted By jzacsh
haha, I was using such a complicated approach!...
haha, I was using such a complicated approach! thanks


-I did part 1 (pre-setting the variable $work)
-I did part 2 (actually, clarified a few of my "debugger" statements to be more helpful)
-I...
13,085
Posted By jzacsh
I've tried this before and I get and error...
I've tried this before and I get and error explaining that "eq" is for mathematical tests, after looking it up I found that indeed its = that's used for strings.


Ahhh - just the kind of advice I...
13,085
Posted By jzacsh
Thanks for your time, really! I ran: truss -o...
Thanks for your time, really! I ran:
truss -o trussOut sh./backup.shI'm not completely sure how this truss command works, aside from its man page's explanation (and the output it produced is 241...
13,085
Posted By jzacsh
Thanks for all your replies! the...
Thanks for all your replies!



the script previously worked fine before this (I tested it in both cases), but for the sake of being thorough (and I trust most people's opinions over mine in this...
13,085
Posted By jzacsh
That if statement is ended at the bottom of the...
That if statement is ended at the bottom of the script (the "fi" can be found in the third to last line)

The else statement that forms the if you're looking at is at the 8th to last line
13,085
Posted By jzacsh
lack of understanding > annoying error
I'm working on a script I wrote called backup.sh
when I run it like this:
. ./backup.sh
I get this error:
ksh: ./backup.sh[124]: no closing quote
when I run it this way:
backup.shI get this...
Showing results 1 to 25 of 31

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