Sponsored Content
Top Forums Shell Programming and Scripting Copy and past html text use wrong character set - Firefox Post 303043153 by jcdole on Monday 20th of January 2020 06:09:03 AM
Old 01-20-2020
Copy and past html text use wrong character set - Firefox

Hello.

The source code is here : WMI query to find memory slot and installed memory on each slot

at post nbr 7


Looking at the text from firefox show nothing special.
Then I Copy the text to notepad and make some change and save to file.
Then I open the file in powershell and try to run it.
I got errors because quotes are partly english quotes and partly open/close french quote



Any help is welcome
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

which access right should set in my webpage index.html ?

I have a webpage, http://my.dns.com/~zp523/index.html, I want all people to have read and execute privileges. I want to extend it with execute privilege. Which command should be used in chmod? is it only give read(r) & execute(x) parameter in 'chmod ??? index.html' thk a lot!! (1 Reply)
Discussion started by: zp523444
1 Replies

2. UNIX for Dummies Questions & Answers

How do I get past an HTML::entities discrepancy on an RPM?

I have an RPM that I am trying to install and it keeps coming back with: I know I could kill the bird by throwing a "yum install *perl*" at it, but this seems like hurling a skyscraper at an ant... any better suggestions? (2 Replies)
Discussion started by: jjinno
2 Replies

3. UNIX for Dummies Questions & Answers

How do I extract text only from html file without HTML tag

I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part. Same problem happens in "type" command in MS-DOS. I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies

4. UNIX for Dummies Questions & Answers

delete newline character between html tags

Hi, I have learned some of the Unix commands a way back and not sure of how to code them when needed in certain way, especially sed command. Here is my situation. I have an xml file with several tags. most of the tags start on the same line and end on the same line. However, data for some tags... (8 Replies)
Discussion started by: girish312
8 Replies

5. Web Development

Add HTML Based on Browser Width (Firefox)

Here is a bit of code I wrote that includes some HTML (table and image code) based on the width of the browser. It works in Firefox. I am not sure if it works for IE. (Need to test.) <script type="text/javascript"><!-- var winWidth = window.innerWidth; if (winWidth > 750) {... (0 Replies)
Discussion started by: Neo
0 Replies

6. Shell Programming and Scripting

Change Hex character strings to HTML entities

Hi! I am not a whiz at awk and very unsure about the aplication of awk solve my problem. I was hoping for some quick pointers so I can figure this out. I have a file that looks like so: label.Asked=\u8CEA\u554F\u6E08\u307F button.Edit=\u7DE8\u96C6... (3 Replies)
Discussion started by: pinnochio
3 Replies

7. Shell Programming and Scripting

read the text file and print the content character by character..

hello all i request you to give the solution for the following problem.. I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print g go goo goog googl google like this Using unix Shell scripting... without using... (1 Reply)
Discussion started by: samupnl
1 Replies

8. Shell Programming and Scripting

copy html to file with lynx

hey huys, i'm extacting some data from a webpage. I used lynx -dump URL > temp.dat its working fine, but I need some data that is in the html code, so how could I store the whole html code of the URL in a file and exit like the above code. (2 Replies)
Discussion started by: Johanni
2 Replies

9. Shell Programming and Scripting

Parsing HTML, get text between 2 HTML tags

Hi there, I'm quite new to the forum and shell scripting. I want to filter out the "166.0 points". The results, that i found in google / the forum search didn't helped me :( <a href="/user/test" class="headitem menu" style="color:rgb(83,186,224);">test</a><a href="/points" class="headitem... (1 Reply)
Discussion started by: Mysthik
1 Replies

10. Web Development

How to copy a selected value of list box into a text box in html form?

hi, i have a list box , a text box and a button in a html form. list box displays some values, when a user selects a value from the list box and press the button. the selected value should be copied to the text box value. can any1 give me a html and javascript code to do this facility. ... (1 Reply)
Discussion started by: Little
1 Replies
SOFTHSM(1)						      General Commands Manual							SOFTHSM(1)

NAME
softhsm - support tool for libsofthsm SYNOPSIS
softhsm --show-slots softhsm --init-token --slot number --label text [--so-pin PIN --pin PIN] softhsm --import path [--file-pin PIN] --slot number --pin PIN --label text --id hex softhsm --export path [--file-pin PIN] --slot number --pin PIN --id hex softhsm --optimize --slot number --pin PIN softhsm --trusted bool --slot number [--so-pin PIN] --type text [--label text || --id hex] DESCRIPTION
softhsm is a support tool for libsofthsm. Read the sections below to get more information on the libsofthsm and PKCS#11. Most applica- tions assumes that the token they want to use is already initialized. It is then up to the user to initialize the PKCS#11 token. This is done by using the PKCS#11 interface, but instead of writing your own tool you can use the softhsm tool. Keys are usually created directly in the token, but the user may want to use an existing key pair. Keys can be imported to a token by using the PKCS#11 interface, but this tool can also be used if the user has the key pair in a PKCS#8 file. If you need to convert keys from BIND .private-key format over to PKCS#8, one can use softhsm-keyconv. A key may not always be exportable through the PKCS#11 interface, but the export command can pull the key data directly from the token database. The libary libsofthsm, known as SoftHSM, provides cryptographic functionality by using the PKCS#11 API. It was developed as a part of the OpenDNSSEC project, thus designed to meet the requirements of OpenDNSSEC, but can also work together with other software that want to use the functionality of the PKCS#11 API. SoftHSM is a software implementation of a generic cryptographic device with a PKCS#11 interface. These devices are often called tokens. Read in the manual softhsm.conf(5) on how to create these tokens and how they are added to a slot in SoftHSM. The PKCS#11 API can be used to handle and store cryptographic keys. This interface specifies how to communicate with cryptographic devices such as HSMs (Hardware Security Modules) and smart cards. The purpose of these devices is, among others, to generate cryptographic keys and sign information without revealing private-key material to the outside world. They are often designed to perform well on these spe- cific tasks compared to ordinary processes in a normal computer. OPTIONS
--show-slots Display all the available slots and their current status. --init-token Initialize the token at a given slot. If the token is already initialized then this command will reinitialize it, thus erasing all the objects in the token. The matching Security Officer (SO) PIN must also be provided when doing reinitialization. Use with --slot, --label. --so-pin, and --pin. --import path Import a key pair from the given path. The file must be in PKCS#8-format. Use with --file-pin, --slot, --pin, --label, and --id. --export path Export a key pair to the given path. The file will be written in PKCS#8-format. Cannot be used in combination with --module, since the keys are extracted from the SoftHSM database, thus not using PKCS#11. Use with --file-pin, --slot, --pin, and --id. --optimize Clean up leftovers (session objects in the database) from applications that haven't closed down properly. Cannot be used in combina- tion with --module. Use with --slot and --pin. --trusted bool Mark the object as trusted. true or false. Use with --slot, --so-pin, --type, and ( --id, or --label). --file-pin PIN The PIN will be used to encrypt or decrypt the PKCS#8 file depending if we are writing or reading. If not given then the PKCS#8 file is assumed to be unencrypted. --force Use this option to override the warnings and force the given action. --help, -h Show the help information. --id hex Choose an ID of the key pair. The ID is in hexadecimal with a variable length. Use with --force when importing a key pair if the ID already exists. --label text Defines the label of the object or the token. --module path Use another PKCS#11 library than SoftHSM. --pin PIN The PIN for the normal user. --slot number The slot where the token is located. --so-pin PIN The PIN for the Security Officer (SO). --type text The type of object. CKO_PUBLIC_KEY or CKO_CERTIFICATE. --version, -v Show the version info. EXAMPLES
The token can be initialized using this command: softhsm --init-token --slot 1 --label "A token" A key pair can be imported using the softhsm tool where you specify the path to the key file, slot number, label and ID of the new objects, and the user PIN. The file must be in PKCS#8 format. softhsm --import key1.pem --slot 1 --label "My key" --id A1B2 --pin 123456 (Add, --file-pin PIN, if the key file is encrypted.) All keys can be exported from the token database by using the softhsm tool. The file will be exported in PKCS#8 format. softhsm --export key2.pem --slot 1 --id A1B2 --pin 123456 (Add, --file-pin PIN, if you want to output an encrypted file.) A token can be backed up by issuing the command: sqlite3 <PATH TO YOUR TOKEN> ".backup copy.db" Move the file "copy.db" to a secure location. To restore the token, just copy the file back to the system and add it to a slot in the con- figuration (softhsm.conf). ENVIRONMENT
SOFTHSM_CONF When defined, the value will be used as path to the configuration file. FILES
/etc/softhsm/softhsm.conf This configuration file handles the slots and the tokens. See softhsm.conf(5) for more information. AUTHOR
Written by Rickard Bellgrim. SEE ALSO
softhsm-keyconv(1), softhsm.conf(5) SoftHSM 13 June 2011 SOFTHSM(1)
All times are GMT -4. The time now is 04:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy