Search Results

Search: Posts Made By: jbsimon000
8,264
Posted By jbsimon000
wooo whooo , thanks !
wooo whooo , thanks !
8,264
Posted By jbsimon000
thanks date +%m | sed -e 's/0//g' ...
thanks

date +%m | sed -e 's/0//g'

Seems to do the right thing
8,264
Posted By jbsimon000
Thanks. I will try it ... FYI - for testing...
Thanks. I will try it ...

FYI - for testing purposes you could use hourOfDay=$(date +%m), to get the month "04".

Thanks !
joe
8,264
Posted By jbsimon000
Calculating delay time - bash
Hi,

I am having the following problem.

test > hourOfDay=06 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime
180
test > hourOfDay=07 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime...
4,162
Posted By jbsimon000
Thanks ! that is perfect. (sorry about the...
Thanks !
that is perfect.

(sorry about the grep and sort, It didn't click off hand of how to get ls to do this.).

the line you gave gives me exactly what I want. I just have to get add it to...
4,162
Posted By jbsimon000
OK, $ls -1t | grep ^suite6 | sort ...
OK,

$ls -1t | grep ^suite6 | sort
suite6_dev_1.125/
suite6_dev_1.126/
suite6_dev_1.127/

This gets me the list of files I am interested in.
I want to now remove all but the last 2...
4,162
Posted By jbsimon000
After further thought that didn't quite work. ...
After further thought that didn't quite work.
The actual directory listing looks like this ( I "bolded" the directories of interest):

$ls -1t
suite6_dev_1.127/...
4,162
Posted By jbsimon000
Thanks ! Great start. there are other files...
Thanks ! Great start.

there are other files in the directory other than the ones I want to delete, so I need to do some further work, but it is a good start, and much easier than I envisioned.
...
4,162
Posted By jbsimon000
Need a script to delete previous versions of files
Hi.

I need a script (either bash or perl) that can delete previous versions of files.

For instance, from our continuous build process I get directories such as

build5_dev_1.21...
8,665
Posted By jbsimon000
well, I did not solve the problem, but I got...
well, I did not solve the problem, but I got around it by putting all of my processing in the "if" statement and performing an exit 0 after I did what I needed to. Would be nice to know what I am...
8,665
Posted By jbsimon000
Yes " The input file looks like this: ...
Yes
"
The input file looks like this:

commands will be executed using /bin/bash
job 1237304740.a at Tue Mar 17 11:45:40 2009"

and you can see in the execution
"+ echo 'AT Job ID =...
8,665
Posted By jbsimon000
Reading lines from a file, using bash, "at" command
Hi.
I have the script shown below. If I execute it form the command line it seems to work properly, but when I fun it using the unix "at" command
"at -m now < ./kill-at-job.sh"
It appears to...
Showing results 1 to 12 of 12

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