![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [PERL] Running unix commands within Perl Scripts | userix | Shell Programming and Scripting | 1 | 05-28-2008 07:06 PM |
| simple unpack script | jboss | UNIX for Dummies Questions & Answers | 18 | 04-06-2008 03:45 AM |
| Perl help!! (pack()?) | Euler04 | Shell Programming and Scripting | 2 | 10-18-2005 11:58 AM |
| does any body know how to unpack this file????? | amicrawler2000 | UNIX for Dummies Questions & Answers | 1 | 08-12-2003 05:38 PM |
| Perl + pack() + spaceing question | Optimus_P | Shell Programming and Scripting | 1 | 10-02-2002 11:03 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
perl pack and unpack commands
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 password. perl -e 'print pack "H*","77636462614e3031"' Now you help is required. In the second step when I am passing the hardcoded value, then it is able to decode it. But when I am using a variable it is not working. ex: var="77636462614e3031" perl -e 'print pack "H*",$var' This doesn't work. Let me know the syntax so that it will return correct value when I use it in a variable? I am trying to execute this perl commands in LINUX OS. Please help. |
| Bookmarks |
| Tags |
| linux commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|