That is a typo in this forum. It's (correct) like the below and the salt command doesn't run but the echo running is working fine. I've tried with #!/bin/sh also. The same salt command works fine on the (interactive) shell (command line).
I cannot find anyone who has used the salt commands inside a shell script. If you do find any, please post it here. Appreciate it.
Last edited by vbe; 11-14-2019 at 10:32 AM..
Reason: code tags please
Hi all,
Can any one help me to look on script below.
My script can work correctly.
For the if compare if more than 500 will go to pub.sh -stop
but it go to echo $?.
what happen to the $? , cant use to compare as integer???
Any one please help,urgent...thanks!
#!/bin/ksh
sqlplus -s... (11 Replies)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Hi,
I have to write a program to compute the checksums of files
./script.sh
I wrote the program using bash and it took me forever since I am a beginner but it works very well.
I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Hi folks
I'm coding on Ubuntu 9.04 standard shell.
I'm writing a script that needs to generate a random number at some point of its execution.
When I do
echo $RANDOMas a command inside shell, I clearly get some randomly generated number
However when I do
i=`$RANDOM`
echo $ior even... (14 Replies)
Hello,
the bulk of my work is run by scripts. An example is as such:
#!/bin/bash
awk '{print first line}' Input.in > Intermediate.ter
awk '{print second line}' Input.in > Intermediate_2.ter
command Intermediate.ter Intermediate_2.ter > Output.out
It works the way I want it to, but it's not... (1 Reply)
I am looping through a file in bash and performing some operations on it. Here is the code.
cat test.dat -
One
Two
Three
Case 1: With if inside while loop
Output:
One
file found :)
------------------
isn't it supposed to print following output !!!
one (3 Replies)
Hi,
I have a bash script to run many system commands on CentOS machine, but I am puzzled by some commands had no effect on parent environment.
For example, I want to refresh the desktop xdg menu when some processes added or deleted items from desktop xdg menu. If I run "killall gnome-panel"... (4 Replies)
Hi all,
I`m trying to find 3 files from all zip files in a directory (and its all its subdirectories) recursively, and concatenate them correspondingly along with the filename (possibly path of that file from current directory).
Suppose I have 3 zips
a123.zip
a234.zip
a456.zip
... (2 Replies)
Discussion started by: senhia83
2 Replies
LEARN ABOUT DEBIAN
ns_crypt
ns_crypt(3aolserver) AOLserver Built-In Commands ns_crypt(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
ns_crypt - commands
SYNOPSIS
ns_crypt key salt
_________________________________________________________________DESCRIPTION
ns_crypt encrypted the key, also known as the password, using the salt and returns the result. It uses the same algorithm as the unix
crypt command.
The result from ns_crypt is a 13-character string. The first two characters correspond to the salt, and the remaining eleven characters
correspond to the password encrypted with the specified salt.
The password is a string (typically that of a password to be used for nscp and/or nsperm authentication).
salt should be two characters, typically from the set [a-zA-Z0-9./]. If the empty string is specified as the salt then ns_crypt returns
the empty string. If a string longer than two characters is specified for the salt it is truncated to two characters. If a one character
salt is provided the output will appear to have a two-character salt (the single character repeated), however, the encrypted value does not
correspond to the same password being encrypted with the equivalent two character salt. (As a result sticking with a two character salt is
highly recommended.)
Input to ns_crypt is case-sensitive.
EXAMPLES
nscp> ns_crypt aolserver ns
ns0WvClsyIL4A
nscp> ns_crypt aolserver NS
NSDQ1dPM.409Q
nscp> ns_crypt aolserver tcl
tcAbgtlzbEhVc
nscp> ns_crypt aolserver tc
tcAbgtlzbEhVc
nscp> ns_crypt aolserver ..
..7TNvXHLxJ9Y
nscp> ns_crypt aolserver .
..fwmBaZuzrRs
SEE ALSO nsd(1), info(n), nscp, nsperm, crypt(3)KEYWORDS AOLserver 4.0 ns_crypt(3aolserver)