I'm trying to write a magic script that will execute a command (for example, ssh) and monitor user input. If it sees "@@" it will accept the rest of the input up the <RETURN> as the filename of a script.
For instance, after entering "@@test", a single <RETURN> is entered and the script, "test"...
I got a new hard drive because my original hard drive was giving me problems. I used the recovery disk to install Vista on the new drive. It formats and installs Vista fine. But during the process of installing the original software the computer has to restart. When it does, the computer goes to...
Hi,
I'm new to networking so, this might sound like a trivial question: Does removing the network processing engine from a router make it inoperable? I'm upgrading to a NPE-G1 on a 7206 router. What's the best way to copy/transfer the configuration?
I have a web page that has two links to text files. When I click on the links I get an access denied message (error 403). In the log file it says the client is denied by the server configuration. For some reason the folder with the text files is the only folder I am having trouble accessing...
I plan on upgrading some Cisco equipment to SSH version 2. Which algorithm is more secure - RSA or 3DES? Which method will require less administration? This will cover a large network so I won't be able to make changes to every device that will be using SSH. How should I determine the length of...
I'm a senior IT major graduating in May, but I'm not sure what I want to do as a career. Right now I work in Network Engineering but I don't thnk it's something I want to do long term. I have considered a career as a computer support specialist and getting my A+ certification. What kind of...
I want to create a web form that automatically has the current date and the previous date as the default. Basically I want the form to have the last 24 hrs as the default date range for the form. It was suggested that I use javascript. I dont know much about javascript so this is what I have so...
I have a HTML form with two drop down menus for selecting a date. I want to automatically have the current date as the default for one and the other to have the previous day. The form is used to lookup data and I want the default settings to be for the last 24 hours. How can I do this?
I have a question....I want to take a CGI program I created and bundle it so that it can be distributed to other computers. I was thinking about using a debian package to create the package. Can I use dpkg-repack to do this? If not, what would be a better alternative?
I have the following lines in my code:
my $last_time = 0;
print $q->header("text/html\n\n"), #This is line 92
$q->start_html(-title=>"Data Report"),
"This is the report for~~<br>";
When I run the program, I keep getting "syntax error near 'print' line 92". I have used the same...
I have been asked to create a file that will delete files that are older than 90 days. I am having trouble using the find command to find and delete the files. The files I want to delete are in one directory. Since the files have different names how can I find the old files without knowing what...
I am having trouble getting my code to open an image file for writing. The code works fine when I try it out in the terminal, but when I run it in a web browser, it dies when it comes to opening the file. What is the reason for this?
This the portion of my code where I am having a problem...
I am using File::Temp to create temp files. The data is not being written to the file. The program creates the file but the file is empty. Could this be because of file permissions? If so, how do I change the permissions for temp files?
I recently bought a new laptop (HP dv2620). When I hibernate the computer, it will later turn back on out of hibernation for no apparent reason. I first noticed this one night when I awakened to find the power light on. I figured that maybe I had just closed the lid and the computer was in sleep...
I have a form that allows users to select data for a certain time range. What module do I use to find data that is stored in text files? The files are saved according to the date of the information (yymmdd). Each file contains data for a certain time period. For example, someone may want to view...
I am trying to graph a temp file. I am using GD::Graph::Data to create the graph. Here is some of my code.
open(FILE, "<timedata.txt") or return; # Open file
my $fh = IO::File->new_tmpfile or die "Unable to make new temp file: $!";
$fh->autoflush(1)...
I am collecting data from text files that contain both text & numbers. I want to only get the numbers and not the text. What command do I use to only read in the numbers?
I put some information in a temp file but when I try to print what’s in the file, I get this instead--> IO::File=GLOB(0x8791…). What does this mean? Is the data not being written into the temp file? Here is a portion of my code.
foreach $line (@data) {
chomp $line;
($timestamp...
I am trying to collect data from a text file that looks like this:
date/time name2 name3 name4 name5 name6 name7 name8
data data data data data data data data
data data data data data data data data
I want to put all of columns 1, 4 & 8 into an...
I have tab delimited text files that have date/time in excel serial format (34567.6256345). I want to collect the data from the 1st, 4th & 8th columns, convert them to normal time (yymmdd hh:mm:ss:ss) and then write the new format to a temporary file. I'm familar with how to parse data, create...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.