Sponsored Content
Special Forums Cybersecurity Function of Javascript within Unix Network Post 302115917 by harish_raj88 on Monday 30th of April 2007 04:58:06 AM
Old 04-30-2007
i dont

JavaScript as part of a Trojan horse attack?i dont know the answer
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

function in UNIX

Hi, I have an array of data as below: df = trx df = xml I would like to create a function which contains array inside it and the value is determined when the function is called as below: function pass_or_fail { if } ] then echo " ${df} FAILED. Please check logs" ... (8 Replies)
Discussion started by: luna_soleil
8 Replies

2. Programming

Unix network programming

Hi! I am working on fedora.. trying to execute BSD4.4 client-server program which includes "unp.h" header file... While executing make command, I got error like, " expected " , " , " ; ",or ")" in connect_nonb file...ERROR 1 " I tried to change mode of makefile but I can't get... (4 Replies)
Discussion started by: nisha_vaghela
4 Replies

3. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

4. Homework & Coursework Questions

Report on Javascript attacks on Unix

1. The problem statement, all variables and given/known data: Prepare a report discussing from an administration and security perspective, role and function of a JavaScript within a UNIX network. You should illustrate your answer with practical examples. In particular attention should me paid to... (1 Reply)
Discussion started by: afdesignz
1 Replies

5. Shell Programming and Scripting

How to use javascript code in unix shell?

Hi Need help...I have wrritten one code for html through shell scripting in that i am using java scripts to validate some condition and open the html page without clicking the button.... Code Details echo "<script type="text/javascript">" echo "function exec_refresh()" echo "{" ... (4 Replies)
Discussion started by: l_gshankar24
4 Replies

6. Shell Programming and Scripting

UNIX function

I have a code like this v_time=12:12:12 correctTimeFlag=$(echo $v_time|awk '{for(i=1;i<=NF;i++) if( $i ~ /::/){print i}}') if then echo "correct" fi I need a equivalent function to replace the line correctTimeFlag=$(echo $v_time|awk '{for(i=1;i<=NF;i++) if( $i ~... (3 Replies)
Discussion started by: swayam123
3 Replies

7. Shell Programming and Scripting

How to use JavaScript in UNIX Shell scripting?

I want to navigate through a webpage and save that page in my system local automatically. How can I do that by using JavaScript in a Unix shell script. Any suggestions are welcome! (3 Replies)
Discussion started by: abhi3093
3 Replies

8. Web Development

JavaScript code - UNIX grep?

Hi I am new to JavaScript & haven't done much work with it, but have mainly experience with UNIX. I have a piece of code where I want to grep (excuse the UNIX language :D) for a id and get the number from that. { "time": 900, "avail": 1, "price": 0, "datetime":... (8 Replies)
Discussion started by: simpsa27
8 Replies
JavaScript::Minifier::XS(3pm)				User Contributed Perl Documentation			     JavaScript::Minifier::XS(3pm)

NAME
JavaScript::Minifier::XS - XS based JavaScript minifier SYNOPSIS
use JavaScript::Minifier::XS qw(minify); $minified = minify($js); DESCRIPTION
"JavaScript::Minifier::XS" is a JavaScript "minifier"; its designed to remove un-necessary whitespace and comments from JavaScript files, which also not breaking the JavaScript. "JavaScript::Minifier::XS" is similar in function to "JavaScript::Minifier", but is substantially faster as its written in XS and not just pure Perl. METHODS
minify($js) Minifies the given $js, returning the minified JavaScript back to the caller. HOW IT WORKS
"JavaScript::Minifier::XS" minifies the JavaScript by removing un-necessary whitespace from JavaScript documents. Comments (both block and line) are also removed, except when (a) they contain the word "copyright" in them, or (b) they're needed to implement "IE Conditional Compilation". Internally, the minification process is done by taking multiple passes through the JavaScript document: Pass 1: Tokenize First, we go through and parse the JavaScript document into a series of tokens internally. The tokenizing process does not check to make sure you've got syntactically valid JavaScript, it just breaks up the text into a stream of tokens suitable for processing by the subsequent stages. Pass 2: Collapse We then march through the token list and collapse certain tokens down to their smallest possible representation. If they're still included in the final results we only want to include them at their shortest. Whitespace Runs of multiple whitespace characters are reduced down to a single whitespace character. If the whitespace contains any "end of line" (EOL) characters, then the end result is the first EOL character encountered. Otherwise, the result is the first whitespace character in the run. Pass 3: Pruning We then go back through the token list and prune and remove un-necessary tokens. Whitespace Wherever possible, whitespace is removed; before+after comment blocks, and before+after various symbols/sigils. Comments Comments that are either (a) IE conditional compilation comments, or that (b) contain the word "copyright" in them are preserved. All other comments (line and block) are removed. Everything else We keep everything else; identifiers, quoted literal strings, symbols/sigils, etc. Pass 4: Re-assembly Lastly, we go back through the token list and re-assemble it all back into a single JavaScript string, which is then returned back to the caller. AUTHOR
Graham TerMarsch (cpan@howlingfrog.com) REPORTING BUGS
Please report bugs via RT (<http://rt.cpan.org/Dist/Display.html?Queue=JavaScript::Minifier::XS>), and be sure to include the JavaScript that you're having troubles minifying. COPYRIGHT
Copyright (C) 2007-2008, Graham TerMarsch. All Rights Reserved. This is free software; you can redistribute it and/or modify it under the same license as Perl itself. SEE ALSO
"JavaScript::Minifier". perl v5.14.2 2011-11-15 JavaScript::Minifier::XS(3pm)
All times are GMT -4. The time now is 08:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy