Search Results

Search: Posts Made By: Showdown
3,672
Posted By Chubler_XL
You could write a script that asks and then...
You could write a script that asks and then executes /bin/crontab. Put this in the PATH before /bin (eg /usr/local/bin):

Script could be something like this as an example. You may not want to...
2,324
Posted By MadeInGermany
Obviously it does so :( Once in Solaris...
Obviously it does so :(

Once in Solaris there was a bug that a "crontab" command wiped the crontab, even if it was aborted with Control-C.
Sun fixed it soon.

BTW, I have some scripts that...
2,324
Posted By MadeInGermany
Looks like a little bug. crontab filename...
Looks like a little bug.
crontab filename should check that filename exists and is a regular file (not a directory, device node, or other special file).

Just crontab (without arguments) should...
2,324
Posted By nezabudka
I will show better crontab -l #no tasks,...
I will show better
crontab -l
#no tasks, empty
echo '*/1 * * * * /usr/bin/notify-send "*******HELLO TO EVERYONE HERE ON OUR MOON******"' >my_file
crontab my_file
crontab -l
*/1 * * * *...
2,324
Posted By nezabudka
Hi If in the current directory where you ran...
Hi
If in the current directory where you ran this command there was an empty file with the name 'ccs',
then you probably deleted all your tasks. Just create new ones and that's it.
932
Posted By cjcox
There are many ways. Perhaps the best way, if...
There are many ways. Perhaps the best way, if not correct way is to use PAM. Most distro provided services are PAM enabled, and you can certainly create your own PAM enabled services as well.
...
2,223
Posted By Aia
$ cat sample.txt AT 0001 ...
$ cat sample.txt
AT 0001 000000000100000000000
BE 4 000000000000030000000
DE 0055 000004000000000000000
FR 0 000000000000000110000
CZ 003 ...
2,223
Posted By Don Cragun
When I run RudiC's code with a file containing: ...
When I run RudiC's code with a file containing:
XXXXXXX XXXXX MM11111 ZM 0 000000000000000000000OREGON XXXXXXX HXN 001111 01010
and the parameters POS="48-51" and...
2,223
Posted By RudiC
Is it possible you searched for 8 chars to be ...
Is it possible you searched for 8 chars to be replaced by a 4 char zero padded string? Tryawk '
{split (POS, P, "-")
P[2]++
LEN = P[2] - P[1]
printf...
2,223
Posted By RudiC
How aboutawk '{split (POS, P, "-"); P[2]++;...
How aboutawk '{split (POS, P, "-"); P[2]++; printf "%s%04d%s\n", substr($0, 1, P[1]-1), substr($0, P[1], P[2]-P[1]), substr ($0, P[2])}' POS="7-10" file
2,223
Posted By Corona688
$ cat data AT 1 000000000100000000000 ...
$ cat data
AT 1 000000000100000000000
BE 4 000000000000030000000
DE 55 000004000000000000000
FR 0 000000000000000110000
CZ 3 000330000000050000000

$...
2,011
Posted By jgt
Maximum command line length (in Linux) ...
Maximum command line length (in Linux)

getconf ARG_MAX
2,011
Posted By RudiC
How about { tr $'\n' ' ' < $1; echo; } | fold...
How about { tr $'\n' ' ' < $1; echo; } | fold -w80 | while read ID; do ID=${ID// /,}; echo "update table_name set status='INACTIVE' where req_id in ($ID);" ; done
update table_name set...
2,011
Posted By Scrutinizer
I think the line length limitation has to do with...
I think the line length limitation has to do with parameters that are passed to the script and not what is in the script itself. You say there is a text file with arguments in a single column, so...
1,461
Posted By cero
Hello, the wait statement can be used for...
Hello,

the wait statement can be used for this. Call it after starting your background jobs without an argument to make your script wait until all of them are finished.
Showing results 1 to 15 of 15

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