Ubuntu :: Write A Script That Keeps "grepping" Strings From The Main Page Of The Linksys PAP2T Every 30 Seconds?
Jun 9, 2011
I want to write a script that keeps "grepping" strings from the Main page of the Linksys PAP2T every 30 seconds.It seems to be simple:1- lynx -auth=user:password URL2- grep the strings3- process themthe problem is that the page is writed in PHP and Lynx does not clear the authentication credentials with a 401 server response!w3m works.. but I don't know how to set the autologin and how to export the page to a text.With firefox.. I can set the home page as but it ask if it can continue before sending the data.. how can I force it and how can I obtain a text from it?I don't know.
View 1 Replies
ADVERTISEMENT
Mar 9, 2011
I have a problem printing to my HP printer.
What is my problem? I have a page (one page - text an graphic) to print. When I sent it to my printer it prints OK. When I sent it agian, the output is totally garbled. When I sent it again (a third time) it is OK. Sent it again (4th time) it is garbled. Sent it again ... you get the picture ;-). Alternating good and bad pages.
What is my setup? I run Fedora 14 with Cups 1.4.6. The printer is a HP Deskjet 940C. It is connected to a linksys wireless print server. It is configured in CUPS to use ipp printing. The driver I use in Cups is 'CUPS+Gutenprint v5.2.6 Simplified (color, 2-sided printing)'.
View 2 Replies
View Related
Jul 16, 2010
Something very handy to do in a Linux shell, is manipulating files and strings - essentially parsing data. Write a utility which will scan in a text file and search and replace strings. We also want to keep track of how many strings we've replaced.
I know that my command would look like this: <utility name> <filename> <stringToSearchFor> <stringToReplaceWith>
Code: #!/bin/bash
[code]....
View 2 Replies
View Related
Aug 28, 2010
If I type
Code:
man perl
on the command line, I get the man page for perl, which lists all of the sections into which the perl man pages have been split. How do I access one of these sections? For instance, the first section is perlintro, but if I type
Code:
man perlintro
I get an error saying there is no such manual entry. How do I access these parts of the manual?
View 2 Replies
View Related
Jul 20, 2009
When I read man pages using the man command, i.e. 'man find', I am missing characters, like this code...
Is anyone else experiencing this or have any tips on how to solve the issue?
View 2 Replies
View Related
Jul 29, 2010
I want to search and replace strings in a file with strings in other files/i need to do it with big strings(string1 is big) and i want to use a txt file for this.But this code not working :
View 14 Replies
View Related
Jul 17, 2011
user@ubuntu:~/Documents/C$ man host_ent No manual entry for host_ent How to install the manpage for host_ent or in_addr under ubuntu?
View 1 Replies
View Related
Apr 23, 2010
I can't write to directories inside my main file system. This is annoying, how to change?
View 3 Replies
View Related
Feb 5, 2010
I'm trying to grep the output of ngrep. Unfortunately when I add another grep to the pipeline, I get no output at all. It can be some other command too - cat / grep / tee - everything breaks the chain. Example:
[Code]....
If I use cat somefile instead of ngrep at the start, everything works as expected.
View 2 Replies
View Related
Jul 1, 2010
I am in the middle of trying to write my first script. I have created a command using sed and grep to grab a list of ftp hosts from a host file. Now I want to test the ftp connection of the hosts that have been returned after running the command.
grep host config.xml | sed 's/<//g;s/>//g;s/host//g;s/[/]//g' | sort | uniq -d | ftp ftp.hostname.com
I get the below error
Unknown AUTH type.
Unknown AUTH type.
KERBEROS_V4 rejected as an authentication type
Password:Name (ftp.hostname.com:username):
View 7 Replies
View Related
Jan 25, 2011
What If I wanted to scan a string like the following...
[Code]...
Anyhow just one giant string that's longer than my screen's width. If I simply copy and paste that string after a grep command, it seems that the terminal inserts newlines at the terminal's width and therefore not the whole string goes in. Even if I insert a quote before the beginning of the string and then paste it in, terminal still reads in a newlines somehow and obviously says command not found, etc.
View 2 Replies
View Related
Oct 12, 2010
i am able to try ubuntu and everything works fine until i try to install. the menu comes up to the first page where it tells you to plug in your machine and make sure there is enough disk space and network connectivity. when i hit next on this page the mouse icon changes but the next page never loads. the longest i let it hang there was 2 hours. ive tried multiple times with the same result.
im running from a flash drive on an ASUS Eee PC 1001P-PU17
View 4 Replies
View Related
Jul 11, 2010
10.04; 64 bit In Firefox, the size of the fonts varies greatly from site to site. Some are too small to read, others huge. Some headings and menus overlap.Screen size: 1152 x 864
My settings are:
Proportional: serif 14
Serif: Times New Roman
Sans serif: Arial
Monospace: Courier New 14
View 1 Replies
View Related
Mar 26, 2011
Can anyone tell me how to name Page up & Page down buttons in global-keybindings to use the custom commands with these buttons?
View 1 Replies
View Related
Nov 23, 2009
On FC11 64 bit with Adobe flash plugin for Linux installed, I see segfault errors from "npviewer" in /var/log/messages. The only browser I have tried yet, Firefox, has glitches every now and then. Sometimes it shows the title of a page in a tab, but the page is blank. This can even happen when I try the Google main page. Is it true that npviewer has something to do with Adobe flash? Is there a way to fix the problem? If it is caused by Adobe flash, is there a different plugin that will replace Adobe flash player?
View 1 Replies
View Related
May 10, 2010
How can I find page hit and page miss ratio in linux fedora core 12?
View 3 Replies
View Related
Jun 8, 2009
I have apache httpd server on my Fedora 10I got 2 problems:First : I copied the web page files to its Document Root <var/www/html> & Disabled the default web page. But when I visit http:/localhost ,it shows up the list of files in <var/www/html> as if a ftp server browsed in web page. So how can I set http://localhost load my default web page index.html ?Second :I want to set up a web server on Internet through my router . I applied for DDNS account & input it into router correctly . I set virtual host in server to redirect any access from port 80 to 192.168.1.2:80 in LAN . Just for in case , I also download and running the DDNS software & installed it on PC 192.168.1.2 in LAN . My DDNS provider is oray.cn . It's a Chinese server provider . I don't think there is anything wrong with oray.cn . But if you need its information just visit oray.cn (Google can translate it for you). So I want to know did I miss something to set up a web server in this kind of situation
View 2 Replies
View Related
Jul 26, 2010
All has been fine with my emails but today morning when i tried to log on I got an error message "You must be logged in to access this page, go to logon page" I dont understand why even when i supply my correct user name and password.
View 2 Replies
View Related
May 8, 2009
wanted to know if i can execute commands on linux console through a web page and redirect it back to my web page !For example :if i send a query "ls"it should execute this command on my linux console and also redirect the list of the files to the web page from which i give the command !
View 8 Replies
View Related
Jul 6, 2011
I want to combine 4 ps(or pdf) page to single page and for this i have try a2ps command as:
a2ps -4 1.ps 2.ps 3.ps 4.ps -o outfile.ps
Event through it divide the page into four section. But only give one output of my four input. other three section is blank. Is i am doing some wrong or Is their any other command to do so.
View 3 Replies
View Related
Aug 11, 2011
Vim: substitute for Page Up and Page Down keys?
View 4 Replies
View Related
Aug 14, 2010
When I boot slackware, I have all the boot process that run but too fast. I don't have time to read what's running. Is there a way to to go page by page. I didn't find any key in my keyboard to stop and go.
View 16 Replies
View Related
Mar 24, 2010
localhost is now fine and localhost/test.php too. However php embedded in html files refused to save in /var/www? what is wrong with my server not being able to read .php strings?
View 2 Replies
View Related
Jun 1, 2010
I have a csv file in this format:
Code:
1,characterswithnospace
2,same
4545,characters
I want to extract only the strings after the comma,
View 4 Replies
View Related
Jan 4, 2011
here's my newbie question - I want to change the following string in text files
Code:
E:MP3
with the following string using sed:
[code]....
View 3 Replies
View Related
Jul 7, 2011
I have two text files in the form:1 ItemA [value]2 ItemB [value]3 ItemC [value]Some of these items are common for both files, while others are missing from either one or the other.I want to compare the values for each common item in the two lists, but don't know how. I have a vague idea that probably grep might be useful, but I don't know how to use it for this purpose.So, to sum it up, what I would like to do is to take to text files containing lists and merge their common items into a third file in the form:
1 ItemA [value_from_list1] [value_from_list2]
2 ItemB [value_from_list1] [value_from_list2]
3 ItemC [value_from_list1] [value_from_list2]
[code]....
View 2 Replies
View Related
Jun 5, 2010
I have a Canoscan LiDE 30 scanner which works fine in Linux. I haven't used it in months, and never since moving from Jaunty x86_64 to Fedora 11 x86_64. This evening I suddenly need to scan two pages to send to someone via e-mail, and the recipient is desperate to receive them. Naturally, Xsane has decided this is the moment to screw me.
The problem: I cannot figure out how to tell Xsane that the page size is 8.5 11. It insists on scanning only the left side, 3.99 x 11. I cannot find a page size anywhere in any of the buttons.
In Preview I once got it to scan the entire page, but could not figure out how to save the image to file. Subsequently I have not been able to figure out how I did it. In any event, scanning from the small main window always scans 3.99 x 11. Adjusting the scan area manually in the Preview window allows me to change the size area in the small main window to 8.5 x 11, but when I then scan from the small main window it reverts to 3.99 x 11.
I have scanned the document a hundred times at least, each time trying different buttons, but nothing has succeeded in getting the full page.
View 5 Replies
View Related
Sep 3, 2010
I am having a lot of problems trying to change one string by another using sed: the sentence is like this:
sed -i 's/KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="0660"/KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="0666"/g' 50-udev.rules
it is just to fing the line with:
KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="0660"
[code]....
View 8 Replies
View Related
Dec 11, 2009
I wrote this small program that will truncate a string that's entered in by the user.An example of its usage:if the user enters in a string say "abcdefghijklmnopqrstuvwxyz" the program will only take the first 9 characters and truncate the rest so that the user can be prompted for a second string and not be worried about remaining characters left in the stream.Now this program works O.K. but I would like to find something in C that has this functionality build into it...Does anyone know of any function that will accomplish this.
View 1 Replies
View Related
Aug 4, 2010
I am trying to replace a section of a file between the first instances of the strings {}, with the contents of another file. Example of the format of the file I'm trying to modify
Code:
Servername=something.com
hosts {
macaddress1
macaddress2
[code].....
Then captured all the "macaddress#"s to a variable and used sed to swap
sed "s/$CURRENTDATA/$NEWDATA/" filename
However I get 1 of 2 errors,
Using a small number of macs in "$NEWDATA"
sed: command garbled: s/ macaddresshere
Or when using a large number of macs in the $NEWDATA variable get
bash: /usr/bin/sed: Arg list too long.
how to replace a large block of txt in one file with another large block from another?
View 6 Replies
View Related