12-24-2002
Pipe ps -ef results to an ascii file
It's a little bit longer of a task however you can pipe the ps -ef results to an ascii (text) file and then view the file for characters that would have otherwise been unviewable.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I have a scritp that is clearing out old files from some directories, rather than echoing the name of the file when it gets deleted i want to echo a ". " I have tried to just echo it after the deletion but it lists like this
.
.
.
.
I want to show it like this
. . . . . . . . .... (1 Reply)
Discussion started by: nhatch
1 Replies
2. Post Here to Contact Site Administrators and Moderators
I received the following e-mail notification, but neither this post nor my previous post is showing up.
----------------------------------------------------------------
patwa has just replied to a thread you have subscribed to entitled - Waiting between commands - in
the UNIX for Dummies... (1 Reply)
Discussion started by: cfajohnson
1 Replies
3. AIX
Hi All,
I have been working with two AIX with san and this is the first I got this minor problem on my third AIX. The san/hdisk was recreated so many times because of this problem. When I created a new vg and fs. The fs will be mounted/unmounted properly but if I query the fs on a vg with... (2 Replies)
Discussion started by: itik
2 Replies
4. AIX
I have 1 box running 5.2 and another running 5.3. Both use the NIS accounts and NFS home directories. Users can telnet on to both and 'who' displays the login.
However when users run xterms using a remote X server (e.g. Exceed), by telnetting then running
/usr/bin/X11/xterm -d xxx.xxx.xxx.xxx:0
... (1 Reply)
Discussion started by: spitzie
1 Replies
5. Linux
Hi,
I am having an issue releated to shell-environment on a server.
Let me explain with the example of below script:
#!/bin/ksh
echo " enter:\c"
read a
echo $a
As I am using ksh the expected output from this script should be 'enter:' (expecting the input for read in same... (8 Replies)
Discussion started by: mystition
8 Replies
6. UNIX for Dummies Questions & Answers
so I need to list all the files in a folder with x character, where x is an arbitrary number. I am not sure of the whole command, but I think it's something like the following:
ls grep -l
What am I missing? What should the command be if I am wrong?
Any help would be appreciated. (5 Replies)
Discussion started by: PhobosAnomaly
5 Replies
7. UNIX for Dummies Questions & Answers
Is it possible to display the clock (timing) on the screen all the time. (3 Replies)
Discussion started by: vino.paal
3 Replies
8. Shell Programming and Scripting
if ; then
rm -rf "${x}"_"${y}"_abc_pqr.dat error: `then' unmatchedCan anyone please help me in correcting it.
Please use code tags next time for your code and data. Thanks (2 Replies)
Discussion started by: D_Sethi
2 Replies
9. Red Hat
Having an issue with clustat not displaying the rgmanager info eventhu all the of the cman started successfully. No fencing errors. all of the cluster.conf are the same on all serers ..etc. However when i run the clustat i only see this:
Cluster Status for RESTON-LSMS @ Mon Aug 31 15:13:16 2015... (4 Replies)
Discussion started by: mrn6430
4 Replies
10. Shell Programming and Scripting
Hello everybody
I'm a little beginer for shell script as I started last night...
I have this script
cat fichier.txt | while read l ; do
#echo $l
echo $x
x=$(( $x + 1 ))
done
it's return
1
2
3
4 (4 Replies)
Discussion started by: remibemol
4 Replies
LEARN ABOUT SUNOS
isencrypt
isencrypt(3GEN) String Pattern-Matching Library Functions isencrypt(3GEN)
NAME
isencrypt - determine whether a buffer of characters is encrypted
SYNOPSIS
cc [flag...] [file...] -lgen [library...]
#include<libgen.h>
int isencrypt(const char *fbuf, size_t ninbuf);
DESCRIPTION
isencrypt() uses heuristics to determine whether a buffer of characters is encrypted. It requires two arguments: a pointer to an array of
characters and the number of characters in the buffer.
isencrypt() assumes that the file is not encrypted if all the characters in the first block are ASCII characters. If there are non-ASCII
characters in the first ninbuf characters, and if the setlocale() LC_CTYPE category is set to C or ascii, isencrypt() assumes that the buf-
fer is encrypted
If the LC_CTYPE category is set to a value other than C or ascii, then isencrypt() uses a combination of heuristics to determine if the
buffer is encrypted. If ninbuf has at least 64 characters, a chi-square test is used to determine if the bytes in the buffer have a uniform
distribution; if it does, then isencrypt() assumes the buffer is encrypted. If the buffer has less than 64 characters, a check is made for
null characters and a terminating new-line to determine whether the buffer is encrypted.
RETURN VALUES
If the buffer is encrypted, 1 is returned; otherwise, zero is returned.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
setlocale(3C), attributes(5)
NOTES
When compiling multithreaded applications, the _REENTRANT flag must be defined on the compile line. This flag should only be used in mul-
tithreaded applications.
SunOS 5.10 29 Dec 1996 isencrypt(3GEN)