Does anyone can write a thread to teach me how to install Windows 2000, RH Linux, and FreeBSD unix in one machine step by step? Or someone's already done with this topic? (1 Reply)
hi, all,
i saw a syntax like this
usr/local/mpiexec -np 8 /home/XXXX/program_exe >& ./temp/out
the output will be put into ./temp/out.
I want to know the meaning of the operation symbol '>&'.
Thanks (3 Replies)
Hi Everyone,
i have a string 00:44:40
so:
$tmp=~ s/://gi;
$tmp=~s/({2})({2})({2})/$1*3600+$2*60+$3/e;
the output is 2680.
Any way to combine this two lines into a single line?
Thanks (4 Replies)
When trying to use backticks for system commands, is there a way to read the error messages if a command doesn't execute properly?
I have no problem getting the results if the command is properly executed.
Ex.
my @result = `dir`;
foreach my $line (@result) {
print "Result = $line";... (2 Replies)
Am actually am new to the linux operating system and knda wana knw more about it.Please could u help me with some commands so i can start with that first.Really need your help (5 Replies)
I am trying to enter a third column in this file, but the third column should that I call "Math" perform a some math calculations based on the value found in column #2.
Here is the input file:
Here is the desired output:
Output
GERk0203078$ Levir Math
Cotete_1... (5 Replies)
I can get my AIX servers to show up in SCOM but I'm struggling with running personal scripts and have the result of these scripts show up in SCOM.
I'm currently using BigBrother and I've written some scripts for BB. I would like to convert these scripts to something that can be used in SCOM.
... (0 Replies)
Hi All,
I want to display the distinct values in the file and for each distinct value how may occurance or there.
Test data:
test1.dat
20121105
20121105
20121105
20121105
20121106
20121106
20121106
20121105
I need to display the output like
Output (2 Replies)
Discussion started by: bbc17484
2 Replies
LEARN ABOUT CENTOS
browser::open
Browser::Open(3) User Contributed Perl Documentation Browser::Open(3)NAME
Browser::Open - open a browser in a given URL
VERSION
version 0.03
SYNOPSIS
use Browser::Open qw( open_browser );
### Try commands specific to the current Operating System
my $ok = open_browser($url);
# ! defined($ok): no recognized command found
# $ok == 0: command found and executed
# $ok != 0: command found, error while executing
### Try all known commands
my $ok = open_browser($url, 1);
DESCRIPTION
The functions optionaly exported by this module allows you to open URLs in the user browser.
A set of known commands per OS-name is tested for presence, and the first one found is executed. With an optional parameter, all known
commands are checked.
The "open_browser" uses the "system()" function to execute the command. If you want more control, you can get the command with the
"open_browser_cmd" or "open_browser_cmd_all" functions and then use whatever method you want to execute it.
API
All functions are not exported by default. You must ask for them explicitly.
open_browser
my $ok = open_browser($url, $all);
Find an appropriate command and executes it with your $url. If $all is false, the default, only commands that match the current OS will be
tested. If true, all known commands will be tested.
If no command was found, returns "undef".
If a command is found, returns the exit code of the execution attempt, 0 for success. See the "system()" for more information about this
exit code.
If no $url is given, an exception will be thrown: "Missing required parameter $url".
open_browser_cmd
my $cmd = open_browser_cmd();
Returns the best command found to open a URL on your system.
If no command was found, returns "undef".
open_browser_cmd_all
my $cmd = open_browser_cmd_all();
Returns the first command found to open a URL.
If no command was found, returns "undef".
AUTHOR
Pedro Melo, "<melo at cpan.org>"
COPYRIGHT & LICENSE
Copyright 2009 Pedro Melo.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2012-03-09 Browser::Open(3)