Search Results

Search: Posts Made By: Master_Mind
15,966
Posted By RudiC
Try as given in example above # m h dom...
Try as given in example above


# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly


would yield

0 * * * * test /script_path/my_script.sh
7,261
Posted By Chubler_XL
Is this what you are after? [[ "${counter}"...
Is this what you are after?

[[ "${counter}" -eq 3 && "${code}" = 'JP' ]] && nohup sh script.sh $val 1 &
1,138
Posted By nezabudka
cat test.config apple=12345 mango=123456 ...
cat test.config
apple=12345
mango=123456
orange=1234567

cat main_script.sh
#!/bin/bash

wd=$(date +%u)
for i in $(cat test.config); do
if [[ ${i/*=} =~ $wd ]]; then
...
1,130
Posted By RudiC
Try awk ' {T[NR] = $1 } ...
Try
awk '
{T[NR] = $1
}

END {printf "select id"
for (i=1; i<=NR; i++) printf ",%s", T[i]
print " from (" ORS "select a.id,"
for (i=1; i<=NR;...
1,954
Posted By MadeInGermany
With the status file it is harder to compute the...
With the status file it is harder to compute the next job.
Don's approach has it hard-coded, this is inflexible in case you want to add or remove a job(-script).
The following uses a status file...
1,954
Posted By Don Cragun
From your post #6 it sounds like you found the...
From your post #6 it sounds like you found the problem, but for the record, the code I suggested should work as explained below...

The first time you run that script (or if the file status does...
7,877
Posted By RudiC
Please become accustomed to provide decent...
Please become accustomed to provide decent context info of your problem.
It is always helpful to support a request with system info like OS and shell, related environment (variables, options),...
3,235
Posted By RavinderSingh13
Hello Master_Mind, As per your request...
Hello Master_Mind,

As per your request following is in pure shell(uses GNU date too in it). Could you please try following and let me know if this helps you.

cat check_files.ksh
DIR=/tmp...
3,235
Posted By RavinderSingh13
Hello Master_Mind, Could you please try...
Hello Master_Mind,

Could you please try following and let me know if this helps you.

cat copy_files.ksh
DIR="/tmp"
INPUT=/edmdidx03/admin/a553454
DATE=$(date +%Y-%m-%d)
DATE_PRE=$(date...
3,235
Posted By RavinderSingh13
Hello Master_Mind, Not clear to me, could...
Hello Master_Mind,

Not clear to me, could you please put all your requirements all together and give more useful samples to make it clear to us.

Thanks,
R. Singh
3,235
Posted By RavinderSingh13
Hello Master_Mind, Could you please try this...
Hello Master_Mind,

Could you please try this and let me know if this helps you.

cat copy_files.ksh
DIR="/tmp"
awk -vdir="$DIR" 'function copy(path){
...
3,235
Posted By RavinderSingh13
Hello Master_Mind, Could you please try...
Hello Master_Mind,

Could you please try following and let me know if this helps you.

cat copy_files.ksh
DIR=/tmp
awk -vdir="$DIR" 'function copy(path){
...
3,235
Posted By RavinderSingh13
Hello Master_Mind, Could you please try...
Hello Master_Mind,

Could you please try following and let me know if this helps you. Considering that your paths dir/app, dir/man all are already created.

DIR=/my/directory/path
awk...
1,500
Posted By wisecracker
Hi Master_Mind... Why did you change exit 0 ...
Hi Master_Mind...
Why did you change exit 0 to break ?
Is this part of a greater script that is unknown to us?
If so then try this...
#!/bin/sh
LOOPIT=1
while [ "$LOOPIT" -le 10 ]
do
echo...
1,500
Posted By wisecracker
I am confused here. What is the need to exit ...
I am confused here. What is the need to exit and wait a few seconds for it to happen using sleep 5 . I really do not understand your logic.
vbe has already commented what you need so why not try...
1,639
Posted By RudiC
Still some questions and guesses; but, based on...
Still some questions and guesses; but, based on that link given, try
awk '
NR == FNR {if (NR == 1) for (MX=n=NF; n>0; n--) REF[$n] = n
else TMP[NR] = $0
...
Showing results 1 to 16 of 16

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