10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I have a code like this:
my $Htimestamp=localtime();#i need to pack and unpack this
my $eheaderline = $Htimestamp;
#packing has to be done here
#unpacking has to be done after packing
... (5 Replies)
Discussion started by: rbathena
I am running weblogic portal(9.2.2) on solaris and i wanted to apply maintenance pack and upgrade it to 9.2.3. Without using
x-windows system how can i apply maintenance pack.? (0 Replies)
Discussion started by: gaurav183
3. UNIX for Dummies Questions & Answers
I am using pack/unpack to encyrpt a file.
syntax is below
encrypt=`perl -e 'print unpack "H*","yourpassword"'` -
echo $encrypt >/file/to/store/encrypted/password
decrypt=`perl -e 'print pack "H*",$pass'` ... (2 Replies)
Discussion started by: erinlomo
I found some code on line.
Is a python function that bring up an Internet interface, here the code:
# Get existing device flags
ifreq = struct.pack('16sh', 'wlan0', 0)
flags = struct.unpack('16sh', fcntl.ioctl(sockfd, SIOCGIFFLAGS, ifreq))
I'm starting... (1 Reply)
Discussion started by: Dedalus
5. UNIX for Advanced & Expert Users
I wondering if anybody tried already or know about the performance to process some Oracle staff from Perl.
I see it could be done by the DBI pachage (so, I guess, it is interface to the OCI, but who know how sufficiant it is..,) with all gemicks around (define, open, parce, bind,.. ), or it can... (8 Replies)
Discussion started by: alex_5161
6. Shell Programming and Scripting
Is there an equivalent of perl's pack function in bash ?
Or in other words, how can I achieve the same thing in bash ?
Much appreciated. (1 Reply)
Discussion started by: NewDeb
7. UNIX for Dummies Questions & Answers
I have a file that contains user id and corresponding password.
Lets say password is "help". The below command will create a hex value for string "help".
perl -e 'print unpack "H*","help"'
So now password is in encoded format.
Then I decoded it in the script where am fetching the... (1 Reply)
Discussion started by: max_payne1234
8. UNIX for Dummies Questions & Answers
How do I pack (using tar zcvf ?) the current folder inluding all files and folders ??
I need to be sure to get all files and folders/subfolders...
Later I will unpack into a new folder on a new server..
Appreciate any help.. (3 Replies)
Discussion started by: WebWatch
9. Shell Programming and Scripting
I wrote a perl script to get the two answers from a value: x.
By this, I want to do sqrt($x) in different precision.
print "Input the initial value x:\n";
$double_value=pack("d", $comp);... (2 Replies)
Discussion started by: Euler04
10. Shell Programming and Scripting
ok this is my problem.
I have a variable that is very specific in spaceing but when ever i try to use the variable i only get 1 empty space vs 3 for example.
$ list="list me"
$ echo $list
$ list2="one two three"
$ echo $list2
one two three
i have tried... (7 Replies)
Discussion started by: Optimus_P