Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: ssmiths001
2,227
Posted By ssmiths001
Crontab help
I have made changes to crontab using: crontab -e

I then save them with :wq but the changes aren't being seen. The file mod date has not changed.

What am I doing wrong?
3,006
Posted By ssmiths001
Installing Perl Modules
I have a script that uses the File::Listing module. I am trying to install it, but I read the ReadMe and it states that the following modules should be installed first:

URI
MIME-Base64...
1,312
Posted By ssmiths001
Exexuting a script
I have a .sh script on two servers. To run the script on one of them, I can simply type: scriptname

On the other script I have to type ./scriptname.sh to run it.

Why is this?
11,603
Posted By ssmiths001
Can't execute a script
I have a script with a .sh extension. When I try to run it from the command line using: test.sh ,I get this message: ksh: test.sh: not found


How do I run this?
1,251
Posted By ssmiths001
Regular expression help for newbie
Can someone tell me what these two expressions do?


$_[1] =~ s/\*/\.\*/;


$_[0] =~ m/($_[1])\s*$/i
20,132
Posted By ssmiths001
Perl script for telnet
Is it possible to write a Perl script that will attempt to telnet to multiple servers and login to each one?

We have numerous servers and on occasion we are unable to connect. I'd like to be more...
2,291
Posted By ssmiths001
Script for file names/sizes
How can I look at a certain directory and list all the file names, locations and sizes of each file in the current directory and all subdirectories?
1,734
Posted By ssmiths001
Thanks for the info
Thanks for the info
1,734
Posted By ssmiths001
Perl newbie question
Can someone tell me what this is doing? I know it is reading records from a table and puts them in a hash. How do I print out, let's say, the first 5 columns of data (assuming columns are named col1,...
2,700
Posted By ssmiths001
Time using Time::Local
Can someone tell me how to get the current date and time in the follwoing format, using Time::Local?

MM/DD/YYYY HH:MI:SS AM/PM
3,195
Posted By ssmiths001
How can I load these values into an array called...
How can I load these values into an array called @month_start?
3,195
Posted By ssmiths001
Sorry about that. I had use Time::localtime; in...
Sorry about that. I had use Time::localtime; in my code. Thanks
3,195
Posted By ssmiths001
This script worked the other day when I ran it,...
This script worked the other day when I ran it, but now it prints this:

01/01/1900
02/01/1900
03/01/1900
04/01/1900
05/01/1900
06/01/1900
07/01/1900
08/01/1900
09/01/1900
10/01/1900...
2,939
Posted By ssmiths001
Thanks. I almost have it, but I can't get the...
Thanks. I almost have it, but I can't get the AM/PM

Here's my code:

use Time::localtime;

my $tm = localtime(time);
printf("Dateline: %02d/%02d/%04d %02d:%02d:%02d\n",
$tm->mon+1,...
2,939
Posted By ssmiths001
Date/Time help
Does anyone know how to use Perl to return the value of the current date/time in this format:

MM/DD/YYYY HH:MI:SS AM/PM
3,195
Posted By ssmiths001
Thank you. Now how do I assign the returned...
Thank you. Now how do I assign the returned values to each of the variable names?
3,195
Posted By ssmiths001
Help w/ Perl dates
I need to create 12 variables, the first of which is the date of the first day of the current month (01/01/2006), and the remaining 11 are to equal each month after the current.

var1 = 01/01/2006...
1,446
Posted By ssmiths001
Using grep
Can someone tell me how I use grep to look for a string in a directory and its subdirectories?
5,532
Posted By ssmiths001
OK, now I understand what you are saying. Thanks...
OK, now I understand what you are saying. Thanks for the help.
5,532
Posted By ssmiths001
I have logfile directories for each day of the...
I have logfile directories for each day of the week. I'm using Korn shell.
5,532
Posted By ssmiths001
Help with if-then-else
Does anyone see something wrong with this statement? I am getting a "syntax error at line 30 : `else' unmatched" error.

dayofweek=`date +%w"-"%a`
echo "DayofWeek = " $dayofweek

if [...
6,391
Posted By ssmiths001
mailx and uuencode question
I have this code below that works well. I also want to attach a logfile to the email. The first part of this code is the body of the email.

echo "The size of $dirname/$f1 size = $f1size, and...
58,065
Posted By ssmiths001
Here something I've used in the past: cp...
Here something I've used in the past:

cp <file name> <filename>.`date +"%Y%m%d%H%M%S"`
8,843
Posted By ssmiths001
calling Oracle procedure from Unix
Does anyone know how to call an Oracle stored procedure from a Unix script?
37,579
Posted By ssmiths001
I've put your function in a directory called...
I've put your function in a directory called functions. In the calling program I have the following:

. /app/manuv711/dnetwork/sfi/functions/datecalc

typeset -Z2 d
set -A months XXX Jan Feb Mar...
Showing results 1 to 25 of 41

 

Featured Tech Videos

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