10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I don't know how to repair this script :/
My OS: Ubuntu Server 18.04 "Bionic Beaver" LTS (64bits)
#!/bin/bash
#
### Ustawienia - sciezki do plików ###
DIRS="/home/ts/ /home/mc/"
BACKUP=/home/backup.$$
NOW=$(date +"%d-%m-%Y")
DELDATE=$(date -d "-7 days" +"%d-%m-%Y")
DAY=$(date +"%a")
#... (4 Replies)
Discussion started by: xCraftRayX
4 Replies
2. Shell Programming and Scripting
I have write the following script, its execution i got following error:
!/bin/sh
#
#
dy='date +%d%b%y'
hn="ECTMPROD12"
bk='/home/backup'
sb=$bk'/'$hn
#
#
cm_d01='tar -czf /home/backup/'$hn'_'$dy'_ofhome.tar.gz /home/oracle/ofhome'
#
#
echo "***** start time of ECTMPROD12 backup full"... (3 Replies)
Discussion started by: rizwan.shaukat
3 Replies
3. Shell Programming and Scripting
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
Discussion started by: sasikanthdba
4 Replies
4. Shell Programming and Scripting
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies
5. Shell Programming and Scripting
Hello everyone,
I have 2 questions :
1) I have a backup shell script, let's call it backup.sh, that is called every hour as a cron job.
As a matter of fact a backup could last more than one hour.
It mounts a NAS and then do some rsync on important directories, so really I don't want to... (2 Replies)
Discussion started by: freddie50
2 Replies
6. Shell Programming and Scripting
Hi all
i am struggling in creating a restore of env files while doing applications clone.
the first file i created for copying the important configurations file
which is running perfect
now for reverting the changes i mean when i am restoring these files to its original places
i have to do... (7 Replies)
Discussion started by: javeedkaleem
7 Replies
7. Shell Programming and Scripting
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
8. Shell Programming and Scripting
Hi,
I need to write a script that will capture the 8th character on each line (alphanumeric /meta chars) to the 16th character and send to an output file. Any ideas?
R,
D. (3 Replies)
Discussion started by: Duffs22
3 Replies
9. Shell Programming and Scripting
Hello folks.
Good Day!
i want to backup /var/www directory backup to another system daily basis incremental backup and weekly full backup. Directory name where it should automatically created like 2010-04-20 i mean via script. Can some one help? (7 Replies)
Discussion started by: learnbash
7 Replies
10. UNIX for Dummies Questions & Answers
Hi,
My SCO Unixware 7.1.1 box is setup to run an EOD backup script, which is as follows:
----------------------------------------------------------------------
start End-of-day
compress $BASE TO /home/compdir
write /home/compdir to DATTAPE
end
... (0 Replies)
Discussion started by: tayyabq8
0 Replies
REWIND(3P) POSIX Programmer's Manual REWIND(3P)
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
rewind -- reset the file position indicator in a stream
SYNOPSIS
#include <stdio.h>
void rewind(FILE *stream);
DESCRIPTION
The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here
and the ISO C standard is unintentional. This volume of POSIX.1-2008 defers to the ISO C standard.
The call:
rewind(stream)
shall be equivalent to:
(void) fseek(stream, 0L, SEEK_SET)
except that rewind() shall also clear the error indicator.
Since rewind() does not return a value, an application wishing to detect errors should clear errno, then call rewind(), and if errno is
non-zero, assume an error has occurred.
RETURN VALUE
The rewind() function shall not return a value.
ERRORS
Refer to fseek() with the exception of [EINVAL] which does not apply.
The following sections are informative.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
Section 2.5, Standard I/O Streams, fseek()
The Base Definitions volume of POSIX.1-2008, <stdio.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2013 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, Copyright (C) 2013 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Stan-
dard is the referee document. The original Standard can be obtained online at http://www.unix.org/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source
files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
IEEE
/The Open Group 2013 REWIND(3P)