Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: bigben1220
1,609
Posted By bigben1220
rdcwayx- thanks! I thought it was the...
rdcwayx-

thanks! I thought it was the variable.

Does the rest of the script look like it will do what I am trying to get it to?

Ben
1,609
Posted By bigben1220
script with dates to gzip and remove
Good morning all!

I am new to programming and trying to learn; please be patient.

I am wanting to write a script that takes the current date and gzip 5 days or older, then remove 10 days or...
1,402
Posted By bigben1220
fake network address....
Good morning!

Why would having a fake network device be useful?

Thanks in advance
Bigben
Forum: IP Networking 07-21-2010
2,453
Posted By bigben1220
What is a fake network device?
Thanks in advance!

Ben
4,797
Posted By bigben1220
Pludi, The information you wanted: OS...
Pludi,

The information you wanted:

OS and Version-
Not working: linux 2.4.34.2-skas3
Working: HP-UX B.11.11

Current shell:
Not working: /bin/bash
Working: command didn't work

Perl...
4,797
Posted By bigben1220
It works find for me on one system too...I just...
It works find for me on one system too...I just cant figure out why not the other system.

Here is the code one more time...just to ensure I copied it right,



#!/usr/bin/perl

#use...
4,797
Posted By bigben1220
Pludi, On both platforms all I do (and have...
Pludi,

On both platforms all I do (and have done) is ./script.pl, and then they run.

radoulov,


#!/bin/perl
use strict;
use warnings;...
4,797
Posted By bigben1220
Pludi, Now I have completely different...
Pludi,

Now I have completely different errors:

String found where operator expected at obj14-1.pl line 95, near "open (MESS1, ""
(Might be a runaway multi-line "" string starting on line...
4,797
Posted By bigben1220
Pludi, Thanks. Why would I have to invoke...
Pludi,

Thanks. Why would I have to invoke perl, if Ive never had to do that before?

Normally i just enter ./script.pl, to make it run.

Ben
4,797
Posted By bigben1220
Pludi, I need some information: Have you...
Pludi,

I need some information: Have you tried explicitly invoking Perl with the script as an argument?

I dont know how to invoke perl?

Ben
4,797
Posted By bigben1220
perl version for syntax errors
All,

Does it matter what perl verios your running when you get syntax errors?

on version 5.6.1 the code works fine, but on 5.8.0 the code gets errors?



#!/usr/bin/perl
#use strict;...
1,716
Posted By bigben1220
Thank you!
Thank you!
1,716
Posted By bigben1220
Perl-OS command to find out what kind
I need to know a command to find out which version of Perl Im currently running.

Thanks
Ben
2,320
Posted By bigben1220
Thanks so much!!!
Thanks so much!!!
2,320
Posted By bigben1220
Dividing user Array by 2
Hello!

Im trying to divid the numbers inputed by <STDIN> by 2.

This is what I have:


print "The input array divided by 2 is as follows:\n"; foreach ((@userArray)/2) {print}


But it...
3,313
Posted By bigben1220
Perfect!! Ok to switch it up and learn... ...
Perfect!! Ok to switch it up and learn...

what is I wanted to divide the user input by 2?? THis is my code below...

I know /2 means divide by 2 correct?

[code]
print "The input array...
3,313
Posted By bigben1220
STDIN-perl
Good morning!

How do I make the info that someone inputs from @userArray = <STDIN>, a new array?


@userArray = <STDIN>;
while ()
{
chomp;
last if ! /\d/;
...
1,044
Posted By bigben1220
using libraries with Perl..getting blank output
Good morning!!

Im trying to create a script that should get a list of numbers from the user (using STDIN or a list of arguments), and call my library function.

My script:

[code]...
1,106
Posted By bigben1220
Yes it is a typo....sorry its foreach. That...
Yes it is a typo....sorry its foreach.

That typo is not in my code though. Thanks for catching it fraklin!!
1,106
Posted By bigben1220
creating/using libraries Perl...blank outout?
Good morning!!

Im trying to create a script that should get a list of numbers from the user (using STDIN or a list of arguments), and call my library function.
#!use/bin/perl

require...
1,958
Posted By bigben1220
Pravin-thanks so much it works!! I had that...
Pravin-thanks so much it works!! I had that earlier but then got confused with the /

Ben
1,958
Posted By bigben1220
Creating a regex expression
Good morning all!!

In my code I and looking through file /etc/syslog.congf and printing every line that has /var/log in it. I need to turn the if 9$line) into a regex code instead.


...
1,965
Posted By bigben1220
Perl command error...
Good morning!

Imtrying to run:


#!/usr/bin/perl

perl -nle 'print if /\var\/log/' /etc/syslog.confBut I keep getting error: Do you need to predeclare -nle.Im trying to create a script that...
1,284
Posted By bigben1220
usinf STDIN or ARGV, taking the input, calling the library and printing results
Good morning!!

I wrote a script and Im not the best at Perl so I would like someone to look it over....just in case. Ive been working on this script forever!!

The script is supposed to: Have...
1,523
Posted By bigben1220
Im sorry I dont understand what your asking. I...
Im sorry I dont understand what your asking. I need to convert it from sed to a perl command.

Thanks
Ben
Showing results 1 to 25 of 66

 

Featured Tech Videos

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