Search Results

Search: Posts Made By: rlopes
Forum: Linux 11-22-2018
6,269
Posted By rlopes
Troubleshooting init.d script
This is what I did:



1. I wrote a simple init.d script (myscript.sh)

2. I placed it under /etc/init.d (where many other default scripts already are)
3. Set the perms to 755
4. Run:...
Forum: Hardware 08-31-2015
9,815
Posted By rlopes
Is it possible that other parts of the system are...
Is it possible that other parts of the system are contributing to corrupt the HD? My fear is that I buy a new HD and it gets corrupted too after a while.
Forum: Hardware 08-30-2015
9,815
Posted By rlopes
Here are some of the dmesg errors: BMDMA...
Here are some of the dmesg errors:


BMDMA stat 0x24o services enabled
failed command: READ DMA
status { DRDY ERR.0 }
I/O error, dev sda, sector 404664
failed command: READ DMA
Forum: Hardware 08-30-2015
9,815
Posted By rlopes
The dmesg output is huge, how can I grep only the...
The dmesg output is huge, how can I grep only the necessary?

---------- Post updated at 01:55 PM ---------- Previous update was at 01:54 PM ----------



You are right, edited the post to...
Forum: Hardware 08-30-2015
9,815
Posted By rlopes
Files getting corrupted
$ uname -a
Linux darksun 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:45 UTC 2014 i686 athlon i686 GNU/Linux
My files are getting corrupted on a frequent basis.

$ sudo fdisk -l /dev/sda
...
1,030
Posted By rlopes
Remove double char occurences
I have a file with random characters where every time a char occurs twice, one occurrence must be removed.

Eg.

asjkdhaSSd

Must become:

asjkdhaSd

Anybody has a SED script in mind to do...
1,733
Posted By rlopes
Sometimes we DO need a ready made solution, and...
Sometimes we DO need a ready made solution, and Akshay was much more helpful than anyone else in this thread.

It's amazing how some people think they know what's best for everyone.

Thank you...
1,733
Posted By rlopes
I have no idea where to start. I could do a...
I have no idea where to start.

I could do a big shellscript to do it, but I believe there's something much simpler that I'm missing.
1,733
Posted By rlopes
Mix two files line by line
I have a file "fruits" and one "colors"

File "colors" contains:
green
red

File "fruits" contains:
apple
banana

I want the output to show all possibilities of fruits and colors:...
3,644
Posted By rlopes
The problem was only that my file had CRLF...
The problem was only that my file had CRLF terminators. Using fromdos solved it.
3,644
Posted By rlopes
sed Ampersand
I want to add the character "<" to the end of each line of input using the & function in SED.

Something like:
sed 's/.*/&\</'

It's important to use the &, not another method, because I want...
15,279
Posted By rlopes
I tried this option but it didn't work. It seems...
I tried this option but it didn't work. It seems that this delay only applies when Wget receives an error.
15,279
Posted By rlopes
Delay with Wget
I have a list of URLs that I need to download in a file.

I know I can use the -i option to load the URLs from the file, but how can I make Wget wait a couple secs between each URL download?
Forum: Cybersecurity 01-11-2013
2,007
Posted By rlopes
Wow, that was fast! Thank you Corona688
Wow, that was fast!
Thank you Corona688
Forum: Cybersecurity 01-11-2013
2,007
Posted By rlopes
It's APACHE. Here's the .htaccess ...
It's APACHE. Here's the .htaccess


RewriteCond %{HTTP_HOST} ^MYSITE.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.MYSITE.org$ [OR]
RewriteCond %{HTTP_HOST} ^MYSITE.com$
RewriteRule ^(.*)$...
Forum: Cybersecurity 01-11-2013
2,007
Posted By rlopes
Server is ignoring slashes
When I try to access my website's Administrator page (mysite.com/administrator), I'm redirected to (mysite.comadministrator), as if the slash was removed from the URL

The funny thing is that I can...
2,649
Posted By rlopes
Converting EPS to JPG issue
I'm trying to convert a file with the following command:

convert -verbose image.eps -resize 500x image.jpg

The problem is that the output image loses it's quality and gets all blurred when...
Forum: IP Networking 11-22-2011
3,411
Posted By rlopes
Connecting via SSH with dynamic IP
My VPN setup requires me to allow users via IP in the firewall, before they can access the VPN via SSH.

The problem is that my home IP is dynamic, and I have to re-add it every time I reconnect.
...
Forum: Web Development 11-05-2011
2,249
Posted By rlopes
It couldn't be easier, thank you!
It couldn't be easier, thank you!
Forum: Web Development 11-05-2011
2,249
Posted By rlopes
.htaccess redirect with #
I have the following directive in my .htaccess:

#RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh" [L]

The problem is that the redirect is going to
http://www.seobook.com/%23a_aid=dh...
2,043
Posted By rlopes
Repeated Pattern
I have a list like this:

todu
todo
tofe
tafo

I want to grep only the lines where the 2nd and the 4th character are the same.
In this case I would get only "todo".

Thanks.
13,910
Posted By rlopes
Thanks, this is almost good. The problem is...
Thanks, this is almost good.

The problem is that it discards Country specific domains like
"bol.com.br" for example.
13,910
Posted By rlopes
Strip subdomains from domains list
Hello,

I'm trying to strip all the subdomains from a domains list.

Let's say the list is:

----------
http://add.my.yahoo.com
ad.doubleclick.net
admin.searchhippo.com...
Forum: Linux 08-08-2010
4,207
Posted By rlopes
Wget 410
I'm trying to download some pages with Wget. The browser can load these pages, but Wget give a 410 error.

One of the pages is:
Central Ohio Auto Dealers - Used Cars - Find BBB Accredited Auto...
11,017
Posted By rlopes
Grep was just an example. Let's say I'm editing...
Grep was just an example. Let's say I'm editing the file with tr,cut,awk,etc.
We can't rely on sed for everything.

Ps: thanks a lot for your response Scottn, but I believe there has to be a...
Showing results 1 to 25 of 28

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