Search Results

Search: Posts Made By: landog
3,286
Posted By Corona688
When your script is run from cron, it has nothing...
When your script is run from cron, it has nothing to read ENTER from -- no terminal. When the utility tries to read, it will get EOF or some sort of error, and probably quit. A badly-coded program...
3,286
Posted By Corona688
It is likely being printed to standard error,...
It is likely being printed to standard error, file descriptor 2. You are capturing stdout only, FD 1, but you can capture both (preferably to separate logfiles).

You can simplify the script by...
1,697
Posted By zaxxon
a) This does not look like a AIX specific...
a) This does not look like a AIX specific problem; moving the post.
b) The forum has a search function and cron job problems are being asked about so often here, you might find easy an answer. Also...
Forum: AIX 02-25-2013
16,918
Posted By MichaelFelt
If the login is failing because you need a...
If the login is failing because you need a passwordless login by a script, and the script is failing - it is probably because the ADMCHG flag is still set.

Note: passwordless is not recommended....
Forum: AIX 02-25-2013
6,626
Posted By alister
I have absolutely no experience with AIX, but a...
I have absolutely no experience with AIX, but a post that I read in another thread may be relevant: from AIX & TAR related stuff (https://www.unix.com/302772134-post4.html) , specifically the...
Forum: AIX 02-23-2013
49,968
Posted By MichaelFelt
If it is just to archive files and directories on...
If it is just to archive files and directories on AIX - consider the backup file format (bff) and the backupbyname option of backup.

I try to stay away from tar for a couple of reasons (does not...
1,911
Posted By jim mcnamara
blocks (forces the script to ignore) singals...
blocks (forces the script to ignore) singals numbered 1 2 or 3.

To see what that is

kill -l


That is a lowercase - ell
941
Posted By sk1418
try grep -n "\.s" textfile
try grep -n "\.s" textfile
24,484
Posted By topmhat
When I use cron I've found that it is almost...
When I use cron I've found that it is almost always necessary to fully qualify executables. So you might try putting the path in front of the date command.

Also, you might try using single quotes...
24,484
Posted By mirni
Backticks mean you want your shell execute the...
Backticks mean you want your shell execute the command, but clearly shell is not there to do this when crontab job is executed. I would leave detailed explanation to someone more competent; but I can...
5,704
Posted By vgersh99
'man crontab' yields: Only the first...
'man crontab' yields:

Only the first line (up to a `%' or end of line) of the com-
mand field is executed by the shell. Other lines are made
available to the command as...
3,454
Posted By kevintse
You'll have to use backticks: ./script.sh >...
You'll have to use backticks:
./script.sh > `date +"%Y%m%d"`
1,739
Posted By Chirel
Hi Just cut and paste the script into a new...
Hi

Just cut and paste the script into a new file using vi or any other editor.

For example my_script

Then change the right so you can execute this file :

$ chmod +x my_file
And now you...
1,739
Posted By jim mcnamara
1. open a file in an editor: script.sh 2. place...
1. open a file in an editor: script.sh
2. place your commands there.
if you are going to run it in cron (scheduler) put these lines at the top of the file

#!/bin/bash ...
Showing results 1 to 14 of 14

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