General :: Which Conditions Needed For Using Wget

Mar 20, 2011

When I wanna use wget to download some file by http, which conditions fulfilled on the server would make that successful. I mean that such service httpd is running and so on.

View 1 Replies


ADVERTISEMENT

General :: Scan Each Incoming Mail With Conditions On Sender Name And Subject

Jan 8, 2010

Request your help in writing a shell script for the following requirement:

1) scan each incoming mail with conditions on sender name and subject
2) scan the mail body for set of characters and email them.

general usage is as follows: I get a mail as follows from: [URL]... subject : Urgent, reply body : name : xyz contact : 12345 the script should mail the following as subject line: n:xyz c:12345 I know procmail is a good option for this, but I'm compelled to use shell script

View 3 Replies View Related

General :: Bash Scripts - Comparing Multiple Items Or Conditions Using 'if' Statements?

Mar 12, 2011

comparing multiple items or conditions using 'if' statements? I want to do something if one or more conditions is true, for example:

If a = 1 or b = 1.

I've tried:

[Code]...

View 5 Replies View Related

Software :: Resume An Interrupted Wget Using Wget.log?

Jun 19, 2011

If a wget download is interrupted (like if I have to shutdown prematurely), I get a wget.log with the partial download. How can I later resume the download using the data in wget.log? I have searched high and low (including wget manual) and cannot find how to do this. Is it so obvious that I did not see it? The wget -c option with the wget.log as the argument to the -c option does not work. What I do do is open the wget.log and copy the URL and then paste it into the command line and do another wget. This works but the download is started from the beginning, which means nothing in the wget.log is used.

View 2 Replies View Related

Fedora :: Getting To Run Level 3 Under Certain Conditions?

Apr 8, 2010

I installed the wrong nVidia drivers, so the machine konks out trying to load X. Machine has no legacy USB support. So I can't enter the kernel menu.

View 9 Replies View Related

CentOS 5 :: Same Old DVD Installation New Conditions?

Sep 22, 2010

Firstly, I have read the bug reports, seen the workarounds, and searched the site. As far as I'm aware, nobody has brought forth a solution for the problem I am about to describe.

From an old thread:
Quote:
Steps to reproduce problem:
1. Burn DVD
2. Insert DVD and boot system
3. At main Centos 5 boot menu press enter to install in graphical mode
4. Select English for language and press enter
5. Select us for type of keyboard and press enter
6. Select Local CDROM as type of media and press enter (list contains Local CDROM, Hard Drive, NFS image, FTP, HTTP)

7. Centos ejects the DVD and says, "The CentOS CD weas not found in any of your CDROM drives. Please insert the Centos CD and press OK to retry.

8. Reinsert the DVD and press enter for OK
9. Goto step 7

View 5 Replies View Related

Fedora :: Getting 0 For Both Conditions In Shell Scripting?

Jun 8, 2011

#!/bin/bash
str3=""
if [ -z $str3 ] ; then
echo " $? = $? "
fi

[code]....

output:-

$? = 0
$? = 0

why we get 0 for both conditions? I am using FC15.

View 1 Replies View Related

Networking :: Change Routing On Certain Conditions?

Feb 24, 2011

I have two linux boxes running RHEL 5.5 with internal ip addresses 10.0.0.114/24 and 10.0.0.118/24, and usual gateway 10.0.0.1. There's an apache listening on both ports 80 and 443 for several websites. This works nice, but the feature for load balancing has to be added. For this, externally, but in the same subnet, a hardware device has been placed for load balancing (we call it "F5"), with internal ip 10.0.0.152 (vrrp for 10.0.0.153 and 10.0.0.154). There's a service address that does NAT via round robin to the servers, 10.0.0.208, managed by the F5 balancer.

If I set as gateway the ip 10.0.0.152 in both nodes, I can use the service address for browsing http and https, *BUT* at a cost that ssh and any other connections, at OS logging level, come from 10.0.0.1, which is innaceptable (i.e., I can' set proper security, regardless the F5 is badly configured), so I have to find another way for this. So, I thought of using iptables mangling capabilities, and my thought is that just changing the default route of the incoming http(s) traffic, everything should be ok. I've done the following:

- Create a table called "F5":

# cat /etc/iproute2/rt_tables
[...]
#1 inr.ruhep
#

[code]....

If I tweak the hosts file in my M$ workstation to test individual access for each server, I can browse the websites with no problem, but if I set the service IP address, I get an error "Document contains no data" in the browser after just a few seconds. Apache logs show nothing in its logs. I can see packets arriving, but seem to go in a loop. I can provide some output, but since surely I'm making some mistake in the process, if I get help with the proper knoweledge about how to fix it, the problem will be solved. But if still someone needs it, I can provide more data.

View 5 Replies View Related

Server :: Create A File From Two Files With Specific Search Conditions?

May 5, 2010

I need to create a report ,

The data is spread across two files in below format,

File 1
=========
<Class Name1>
Ph: 001
Place: place001
</class>

[Code]....

View 4 Replies View Related

Software :: Finding (conditions) Then Create Tar-ball (matching Files)?

Jul 8, 2010

certain there is command line magic that will enable me touse find to identify a set of files use tar to create an archive of all matching files I get find to create a list of files that I really want, but I'm dashed if I can discover how to tell tar to roll-up all of those files.

If I use find's -exec option, it runs tar for each filename. Telling tar that input is $(find ...) results in a command line that is correct but too long. I think that I want to tell tar to read the list of files from STDIN, but I cannot discover how to do that if it is possible. I thought that the option "--" double-dash but having that right-most on the tar command did not work.

View 5 Replies View Related

General :: RDP Capability Needed

May 29, 2010

I am looking to setup some computers as thinclients to connect to my MS Terminal Servers. We have a homebrew application that configures RDP sessions. A user logs into a webpage that dynamically generates a "launch.rdp" file. This file is generated to balance the load between servers.What I'd like to do is configure an image to boot up into Mozilla. When the user goes to the webpage, I'd like the launch.rdp file to open up in a terminal server session.I've tried with rdesktop and tsclient, but unfortunately neither would work with a "rdp" file.

View 14 Replies View Related

General :: Using Wget On A Site With Cgi?

Sep 6, 2011

I need to mirror a website. However, each of the links on the site's webpage is actually a 'submit' to a cgi script that shows up the resulting page. AFAIK wget should fail on this since it needs static links.

View 1 Replies View Related

General :: Not Getting Access To The Needed Paths?

Jun 18, 2011

I have not been on in about a month or 2. I have no idea how to list this thread. I am hoping that someone like tex can help out. Being lazy with ubuntu seems to have been badong. Ok, I had 2 physical machines and 3 vms. VM's ran under Vbox-ose via a bridge. OS's are buntu x2 and one centOS box. I installed webmin to make things easy ( i thought ).However, after setting webmin, my I have been randomly loosing PATH's. I mean, one minuet i can run sudo apt-get and the next the whole PATH is gone. I tried a compare of my "home" box's bashrc and bash_profile against the other machins, and outside of some alias for colr and the like nothing seems to stand out. Even if I su - to root I am not getting access to the needed paths. Now, while I could export the correct path, I am more conserned with the why of it all.

I would have thought that as long as my group setting on my ssh users were all correct AND the environment had not been changed, all would be good. I can provide more info if someone wants to help me out with this. HOwever, it drove me to a six pack. 8SI have read the man pages. I have used google. I have checked the logs. The logs by the way showed a lil hammering on one of the boxes for root access. [I]t wasnt me. However, I dont seem to be able to see a time stamp.

View 3 Replies View Related

General :: Hide The KDE 4.3.5 Menu Until Its Needed?

Mar 10, 2010

I installed the new Frugalware 1.2 via USB and that went well. I wanted an LXDE menu, as I don't like the "style" of the KDE menus, and the KDE menus seem slow, too.

The problem is that after installing LXDE, I have the LXDE menu from what I'd call the start button, which I like, but the KDE menu is now covering the entire screen on all desktops, and there seems no way to minimize it. I doubt I'll have to use it often, but don't want to lose all access to the programs on it. I haven't checked to see if all the programs are on the LXDE menu, but I noticed that Gfpm (the package manager) is now missing from the menu. Not sure if anything else has disappeared.

n Is there a way to minimize or hide the KDE menu?

View 4 Replies View Related

General :: Usb Cd/dvd Rw Management Software Needed?

Feb 14, 2010

we need a software to close/disable USB/DVD-RW/CD-RW where we can close 50+ pcs users over the network.this means we can controll remotely like how we do adminsitration. as closing and opening each usb and cd-rom is very difficult the os are mixed like fedora,opensuse,windows xp/vista/7 etc purpose to restrict users to carry company data outside network or office

View 1 Replies View Related

General :: How To Run Aria2 Or Wget Only Through Eth0

Mar 5, 2010

I have a computer under Linux with several network cards, for example: eth0, eth1, eth2, eth3. Is there some way to run any downloader, like aria2 or wget only through one interface, for example eth0?

Main problem: for some reason I can't use iptables

View 2 Replies View Related

General :: How To Download Images With Wget

Oct 6, 2010

I'm doing this wget script called wget-images, which should download images from a website. It looks like this now:

wget -e robots=off -r -l1 --no-parent -A.jpg

The thing is, in the terminal when i put ./wget-images www.randomwebsite.com, it says

wget: missing URL

I know it works if I put url in the text file and then run it, but how can I make it work without adding any urls into the text file? I want to put link in the command line and make it understand that I want pictures of that certain link that I just wrote as a parameter.

View 1 Replies View Related

General :: How To Use 'wget' To Download Whole Web Site

Mar 14, 2011

i use this code to download :wget -m -k -H URL... but if some file cant be download , it will retry Again and again ,so how to skip this file and download other files ,

View 1 Replies View Related

General :: Commenting In A Wget List?

Apr 2, 2011

I need to download about 100 packages so I'm using wget-list to make it easier. My question however, is once I've made the list (I assume it's in a .txt format), is there a way I can insert comments into it that wget will ignore? Something like this:

#This is a comment
http://someurl.com
http://anotherurl.com

View 2 Replies View Related

General :: How To Redirect Wget To Standard Out

Aug 9, 2011

I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output to /dev/null. I couldn't find it in the wget manual.

I'm looking for something like:

wget -o stout http://whatever.com/page.php > /dev/null

View 4 Replies View Related

General :: Force Redownload With Wget?

Jan 15, 2010

I had the bad surprise that wget doesn't redownload when a file of the same name already exist.

Is there an option to force him to redownload without deleting the file first on linux ?

View 3 Replies View Related

General :: WGET Command Not Working

Jan 5, 2010

I have a website that I need to go to often and disable a monitor. To disable I need to login to the website-> click on monitor -> then uncheck a box.

I am told that I can do this through a scipt using the WGET command. I got the parameterized query and then tried to execute it through a *.sh script.

The script generates a php file in the location from where it is executed. When I go to the site and check the monitor is not disabled.

View 2 Replies View Related

General :: Wget For A Login Form ?

Oct 1, 2010

I m trying to access a site through a perl script for a project of mine, and i use a system call fora wget.

The login form is this

Code:

I mean should i add in the --post-data all the hidden fields? should i try using perl's md5 function for the last two fields? anyone has any idea on what are the elements i should be sending along --post-data?

Is there a way to --load-cookies from mozilla or something similar instead of creating new cookies with wget?

View 1 Replies View Related

General :: Download File Via Wget?

Mar 6, 2011

I would like to use wget to downlaod file from Redhat linux to my windows desktop , I tried some parameter but still not work , can advise if wget can do download file from linux server to windows desktop ? if yes , can advise how to do it ?

View 14 Replies View Related

General :: Get Data Downloaded By Wget?

Oct 5, 2010

i am using Ubuntu 10.04 when i downloaded some thing using wget like wget [URL] where this page will get downloaded and second thing sudo apt-get install perl-doc i installed documentation for perl the same i have for postgreSQL... how to use these perl documentation in learning perl.

View 1 Replies View Related

General :: Wget Failure On My System

Oct 7, 2010

I want the wget command to work on my linux machine.This is the output of the uname command on my machine Linux kalpana

Quote:

I get the error -ksh: wget: command not found.So can anyone tell me how do I install the wget utility on my machine.

View 5 Replies View Related

General :: Wget Not Working When Trying To Browse

Jun 25, 2010

I am trying to download data/file from web server where htpassword has been setup, I have tried with browser it its working fine, but when trying to same with 'wget' its not working, how to download the file. Below is the command I am using. [URL]... admin[:]password (may be smily get overide)

View 4 Replies View Related

Programming :: Script To Read Active Squid Logfile And Output Results To Html Based On Conditions?

Mar 12, 2010

Basically the requirement of the script are :

1. need to run like a daemon which will read an active squid logfile in a refresh pattern of 5 minutes

2. calculate the total number requests based on different domains that the client access

3. calculate the total of number of requests based on different domains as well as the turnaround time of these access is more than 5 sec that the client access

4. calculate percentage of item 3 over item 2

5. report the results in html format as follows:

Domain Name Total req Req > 5 sec % of req > 5 sec

6. able to access the results from web browser.

View 8 Replies View Related

General :: ReadyNAS Duo - Under What Circumstances Resync Really Needed?

Feb 25, 2010

On the ReadyNAS Duo, a RAID resync synchronizes the entire contents of one disk to another. It's a slow operation. So it's not something to be done lightly. By default, it is done whenever the unit is shut down uncleanly (generally the result of a hang or power interruption). It's something that can be disabled, though, such that a resync would be done only when manually requested. The authors of the software RAID driver in Linux (called "md") came up with a nice solution to the problem of slow RAID resyncs: the md driver allows you to assign a write intent bitmap to an md device, and where it's stored is configurable (the default is to store it on the md device in question, in the superblock). So when the array goes down unexpectedly (e.g., in a power outage), only the blocks that the md device was going to write will actually be resynced.

It's sort of like a journal for the md device itself. Now, the ReadyNAS Duo doesn't seem to use Linux md at all for implementing the RAID volume, but it does have an option to disable automatic resync in the event of an improper shutdown. And that leads to my question: how necessary is it to do a resync in such an event? If the Duo uses the same method as the Linux md driver, then obviously such a resync would rarely be necessary. But if it doesn't, then it would be the equivalent of using the md driver without a write-intent bitmap, and a resync would almost certainly be necessary in the event of an improper shutdown. Does the Duo (and maybe other units) use the equivalent of a write intent bitmap for RAID write operations?

View 1 Replies View Related

General :: Bandwidthd Needed For Dedicated Server

Jan 29, 2010

Wath should be the bandwidthd needed for a home dedicated server so i can run several sites on it?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved