11-12-2008
Guess the only true way to know is to test it
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Ih all,
i have multiples ksh scripts for crontab's unix jobs
they all have same variables declarations and some similar functions
i would have a only single script file to declare my variables, like:
var1= "aaa"
var2= "bbb"
var3= "ccc"
...
function ab { ...}
function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies
2. Shell Programming and Scripting
Hi
I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email.
For example
-------
Script ABC
-------
a.ksh
b.ksh
c.ksh
I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
What is the diffence between executing the script like
./myscript.ksh
. ./myscript.ksh
I have found 2 difference but could not find the reason
1. If i export a variable in myscript.ksh and execute it like . ./myscript.ksh the i can access the other scripts that are present in... (5 Replies)
Discussion started by: max_hammer
5 Replies
4. Shell Programming and Scripting
I'm getting different behaviour when executing below script in debug option.
$ cat ss.ksh
ff=$(pwd)
echo " ff : $ff"
$ ksh ss.ksh
ff : /tmp
$ ksh -x ss.ksh
+ + pwd
ff=
+ echo ff :
ff :
I was getting this behaviour in my actuall script i'm able to reproduce this in simple script... (4 Replies)
Discussion started by: luckybalaji
4 Replies
5. AIX
Hi guys, I need some assistance moving a LV. :D
I have a VG with two PV; on the second PV there is only one LV so I want to move it to the first PV (hdisk1) in order to get rid of the second one (hdisk2)
Something like (pseudocode):
move MyLV from hdisk2 to hdisk1
How can I achieve that? (4 Replies)
Discussion started by: verdepollo
4 Replies
6. Shell Programming and Scripting
Hello All,
/storage3
/storage4
I have written a shell script to locate files older than 7 days in /storage4 folder and move to /storage3.At the same time it will take output as number of files moved and log in a .txt file.
It will also find files in /storage3 older than 90 days and remove... (4 Replies)
Discussion started by: Siddheshk
4 Replies
7. AIX
Hi All,
please help me with the command for moving/copying one directory(including subdirectories) to one directory in another mount point in same server in AIX ...
thanksss (7 Replies)
Discussion started by: Sanal
7 Replies
8. Shell Programming and Scripting
Hi ,
I've learnt that the following command will remove the files from the given folder for given no.of days
find /home/etc -type f -atime -10 -exec rm -f {} \;
But how can I change the above command that will move the files to another specified directory instead of removing the... (1 Reply)
Discussion started by: smile689
1 Replies
9. AIX
hello everyone,
this is my first post in this forum, I hope I am in the right place :)
I am relatively new to AIX, and I need help doing the following:
move data from directory /universe_log/CIHPRD to /universe_log/novabch1
while changing lv and preserving mount point.
below some... (7 Replies)
Discussion started by: Tarik36
7 Replies
10. UNIX for Beginners Questions & Answers
I'm trying to wirte ksh script for given requirement, but i unable to achive it.
In dir1 directory I need to check for the files which suffixed with .csv or .txt, If there is no files, then i need to exit. If any files found I need to move the each file found to dir2 directory. I have to repeat... (4 Replies)
Discussion started by: Kayal
4 Replies
LEARN ABOUT DEBIAN
4digits-text
4DIGITS(6) The 4digits game 4DIGITS(6)
NAME
4digits - Guess-the-number Puzzle Game
SYNOPSIS
4digits
4digits-text [OPTION] ...
DESCRIPTION
4digits is a guess-the-number puzzle game. It's called Bulls and Cows, and in China people simply call it Guess-the-Number. The game's
objective is to guess a four-digit number in 8 times using as less time as possible. It is similar to Mastermind, but the four digits are
different to each other. 4digits has both graphical user interface version and text user interface version. 4digits launches the graphical
version, and 4digits-text launches the text version.
OPTIONS
These options only apply to the text interface.
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by Yongzhi Pan.
REPORTING BUGS
Report bugs at <https://github.com/fossilet/4digits/issues>.
COPYRIGHT
Copyright (C) 2004-2012 Yongzhi Pan.
This is Free Software; this software is licensed under the GPL version 2, as published by the Free Software Foundation. There is NO war-
ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
The full documentation of this game is in HTML format shipped with the game.
4digits 1.1.2 May 2012 4DIGITS(6)