Search Results

Search: Posts Made By: anaigini45
Forum: HP-UX 05-11-2018
5,084
Posted By gull04
Hi, The script expects to see the...
Hi,

The script expects to see the resolve.conf file, so is correctly identifying the missing file - touching the file removes the error.

There are a number of options, the simplest is probably...
Forum: HP-UX 03-05-2018
8,815
Posted By bakunin
No. Actually it is lke this (i will do this step...
No. Actually it is lke this (i will do this step by step so that you can understand what is done):

| gzip > dir.tar.gz

This means that gzip is getting data from stdin, packing them and sending...
Forum: HP-UX 02-28-2018
8,815
Posted By gull04
Hi, When I'm doing this I tend just to do...
Hi,

When I'm doing this I tend just to do the whole thing in a single line - something like.

#> tar cf - | ssh me@server ( cd /destination ; tar xf - )

Obviously you would adjust the create...
Forum: Red Hat 07-20-2017
1,162
Posted By rbatte1
You haven't said what shell you are using. If...
You haven't said what shell you are using. If this is ksh or plain sh, then the test you are performing in your if statement is still not valid. The double [ and ] suggested are bash. You are...
Forum: Red Hat 07-20-2017
1,162
Posted By MadeInGermany
This is the mistake: if [ "$DAY" > 15...
This is the mistake:
if [ "$DAY" > 15 ];thenFix:
if [ "$DAY" -gt 15 ];then--
A suggestion for efficient handling of "date to variables":
eval $(date "+DAY=%d MONTH=%b YEAR=%Y")fills three shell...
Forum: Red Hat 07-20-2017
1,162
Posted By RavinderSingh13
Hello anaigini45, Could you please do...
Hello anaigini45,

Could you please do following change into your script, it code should fly then.

cat script1.sh
DAY=$(date +%d)
MONTH=$(date +%b)
YEAR=$(date +%Y)
BC01="Blast_BC01"...
Forum: Red Hat 05-05-2017
7,560
Posted By RudiC
The -d option of date takes one single date only,...
The -d option of date takes one single date only, not several separated by a line feed char. How about
D="$(stat -c %z sh* | awk -F"[ -]" '{print $3}')"
echo "$D"
03
03
Showing results 1 to 7 of 7

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