11-08-2006
perl is no option.... its not on all systems
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
I wrote a small KSH script, in that i am comparing two variables like this
curr_time = date +%h.%m
set_time=23.55
If ];
then
zip the file
fi
The above script is croned to run evey 5(3,8,.......,58) minutes, but it is zipping at 23.03 hours. My intention is at 23.58 .what... (4 Replies)
Discussion started by: nandinisagar
4 Replies
2. Programming
Hi !
How to reset a variable to 0 after a reset value, say 10 using bitwise
XOR.
For example,
int cnt=0;
if(cnt<10)
cnt++;
else
cnt = 0;
How can we achieve this by using XOR only.
thanks, (1 Reply)
Discussion started by: mrgubbala
1 Replies
3. Shell Programming and Scripting
Hi,
I want to get the first two items returned by ps -ef into two variables?
Can anyone please help
Thanks (8 Replies)
Discussion started by: JamesByars
8 Replies
4. Programming
Hi,
I am trying to reverse a string using the following program utilizing the Exclusive OR bit operation:
int main() {
char str = "Quraish";
char *p = str, temp;
char *q = str + strlen(str) - 1;
while ( p != q ) {
if (*p != *q) {
*p ^= *q; *q ^= *p; *p ^= *q;... (1 Reply)
Discussion started by: royalibrahim
1 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to work on the script given below
#!/bin/ksh -x
pfile()
{
echo "$1"
}
touch smp19
echo "Hi" > smp19
result=$(pfile $smp19)
echo $result
As highlighted , when i pass $smp19 as parameter ,it does not display the output.However when i try giving "Hi" instead... (2 Replies)
Discussion started by: Sheema
2 Replies
6. Shell Programming and Scripting
Hi there,
I want to compare 2nd column which are alphanumeric values from each of the 2 files i.e.,lspv_pre.out and lspv_post.out , if found echo some message.
lspv_pre.out
hdisk0 00c39eaa451144dd rootvg active
hdisk1 00c39eaa45223322 ... (3 Replies)
Discussion started by: mbak
3 Replies
7. UNIX for Dummies Questions & Answers
I am aware of truth table for XOR between binary values .
Out of curious in would like to know how XOR works between 2 strings which contain alphabets .
For example A ^ B
How it works internally?
Please help me to understand this
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
8. FAQ Submission Queue
The purpose of this article is revealing the unrevealed parts of the bitwise XOR.
As we aware, the truth table for the XOR operator is :
A B A^B
0 0 0
0 1 1
1 0 1
1 1 0
For example , 1^2 will be calculated as given below:
First the operands... (1 Reply)
Discussion started by: pandeesh
1 Replies
9. UNIX for Dummies Questions & Answers
hi,
i am new to shell programming, can u please tell me how to perform XOr operation of two strings.
i tried to do xor using ^symbol but this doesnt work.
help me with this
Thanks (12 Replies)
Discussion started by: anil_uvce
12 Replies
LEARN ABOUT OSF1
uucpsetup
uucpsetup(8) System Manager's Manual uucpsetup(8)
NAME
uucpsetup - The uucp setup program
SYNOPSIS
/usr/sbin/uucpsetup [-moiap]
OPTIONS
Adds modems, configuring the dialers for uucp. Adds incoming systems; that is, systems that are allowed to call your local system. Adds
outgoing systems; that is, systems that your local system is allowed to call. Adds the modems and incoming and outgoing systems to uucp.
The -a option implies the -m, -i, and -o options. Adds the system name to /usr/lib/uucp/Poll file.
DESCRIPTION
The uucpsetup command provides an interactive facility for setting up and updating the uucp files necessary to configure your system for
uucp connections.
To set up uucp initially, run the uucpsetup command with the -a option and answer the questions. To update the uucp files and directories,
run uucpsetup with the -m, -o, or -i options, as appropriate. If no options are specified, the -m, -o, and -i options are the default.
You must be superuser to run uucpsetup.
FILES
Contains information about available devices. Contains access permission codes for remote systems. Lists accessible remote systems. Con-
tains the polling option for each remote system.
SEE ALSO
Devices(4), Permissions(4), Poll(4), Systems(4), uucp(1), uucp_intro(7)
Network Administration
uucpsetup(8)