Sponsored Content
Top Forums Shell Programming and Scripting Help gettgin this script to work on linux Post 302549609 by pludi on Tuesday 23rd of August 2011 11:23:00 AM
Old 08-23-2011
BTW, if you're developing for multiple platforms, you might want to take a look at File::Util (sadly, not part of the core modules), which will do all this mapping for you automagically.

Also: There can be only one! [cue Thunder sound]
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ISDN on Linux..will it work?

Hi everyone! I going to change from a 56k modem to a ISDN connection and was wondering if this will work under Linux and what i would need to get it up and running ? (on Mandrake 8.0).. thanx in advance.. grtz phaelanx :) (4 Replies)
Discussion started by: Phaelanx
4 Replies

2. UNIX for Advanced & Expert Users

Trying to get my USB network card to work with Linux

Ok, heres the deal... Yesterday i installed Unix on my laptop and surprisingly everything works perfect.....exept my network card i have a linksys USB network card (basically a thing you plug into a USB port that is now your NIC card and i connect it to my router) But i have no idea how i... (1 Reply)
Discussion started by: Freakytah
1 Replies

3. UNIX for Dummies Questions & Answers

Is it possible to put the whole Linux OS on DVD and work with it?

Is it possible to put the whole Linux OS on DVD and work with it? If yes, how to do it? (1 Reply)
Discussion started by: alexhon
1 Replies

4. UNIX for Dummies Questions & Answers

Work on Linux Using Bootable CD ??

Hi , I am using a laptop with windows XP as the operating system. i want to use linux/unix without installing it on my machine. I heard that i can do so using some Linux bootable CD .... which can be used to work on linux environment with out physically installing it on your system. I... (2 Replies)
Discussion started by: newbie07
2 Replies

5. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

6. UNIX for Dummies Questions & Answers

Any Linux/Unix work with SATA yet?

i got my computer in 2k, built it myself. top of the line then and better than most still now. one problem however is i was never able to install unix because the old kernels were not compatible with SATA hard drives i dont have any IDE drives nor do i want any I want mine on SATA, but every... (5 Replies)
Discussion started by: GXDeMoNN
5 Replies

7. Shell Programming and Scripting

sed works on Linux and Unix does not work

Hi, I use this command in Linux but if I run the same command does not work in freebsd. Follow the below command: Linux works: sed -e '1731a\' -e '####' squid.conf > squid2.conf ; sed -e '1731a\' -e 'acl TESTE_ip src 192.168.1.1/255.255.255.255' squid2.conf > squid.conf ; sed -e... (7 Replies)
Discussion started by: andreirp
7 Replies

8. Shell Programming and Scripting

Modify awk command to work in linux

Hi All I have the original file like '1','3','COMMON','N','djpCM3PopDimDateGen','JobDescription','1','ds','O','ONE' '1','3','COMMON','N','djpCM3PopDim1','JobDescription','2','ds','O','ONE' '1','3','COMMON','N','djpCM3PopDim2','JobDescription','3','ds','O','ONE'... (3 Replies)
Discussion started by: vee_789
3 Replies

9. What is on Your Mind?

[?] Does Netflix work on Linux in Firefox?

I've tried to totally ignore Netfix to date, though I might change my mind. But I refuse to keep a Windows box running for any reason. Is anyone streaming movies from Netflix and watching them on a Linux box? I went to netflix.com to look for the requirements page. None. OK, how about a... (4 Replies)
Discussion started by: KenJackson
4 Replies

10. Shell Programming and Scripting

My script work on Linux but not work in sunos.

My script work on Linux but not work in sun os. my script. logFiles="sentLog1.log sentLog2.log" intial_time="0 0" logLocation="/usr/local/tomcat/logs/" sleepTime=600 failMessage=":: $(tput bold)Log not update$(tput rmso) = " successMessage="OK" arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
install::TempContent::Objects::mod_perl-2.0.9::docs::apiUseraContributedinstall::TempContent::Objects::mod_perl-2.0.9::docs::api::Apache2::Util(3)

NAME
Apache2::Util - Perl API for Misc Apache Utility functions Synopsis use Apache2::Util (); # OS escape path $escaped_path = Apache2::Util::escape_path($path, "a 'long' file.html"); # format time as a string my $fmt = "%a, %D %H:%M:%S %Z"; $fmtdate = Apache2::Util::ht_time($r->pool, $r->request_time, $fmt, 0); Description Various Apache utilities that don't fit into any other group. Functions API "Apache2::Util" provides the following functions and/or methods: "escape_path" convert an OS path to a URL in an OS dependant way. $escaped_path = Apache2::Util::escape_path($path, $p); $escaped_path = Apache2::Util::escape_path($path, $p, $partial); arg1: $path ( string ) The path to convert arg2: $p ( "APR::Pool" ) The pool to allocate from opt arg3: $partial ( boolean ) if TRUE, assume that the path will be appended to something with a '/' in it (and thus does not prefix "./") if FALSE it prepends "./" unless $path contains ":" optionally followed by "/". the default is TRUE ret: $escaped_path ( string ) The escaped path since: 2.0.00 "ht_time" Convert time from an integer value into a string in a specified format $time_str = Apache2::Util::ht_time($p); $time_str = Apache2::Util::ht_time($p, $time); $time_str = Apache2::Util::ht_time($p, $time, $fmt); $time_str = Apache2::Util::ht_time($p, $time, $fmt, $gmt); arg1: $p ( "APR::Pool object" ) The pool to allocate memory from opt arg2: $time ( number ) The time to convert (e.g., "time()" or "$r->request_time"). If the value is not passed the current time will be used. opt arg3: $fmt ( string ) The format to use for the conversion, using strftime(3) tokens. If the value is not passed the default format used is: "%a, %d %b %Y %H:%M:%S %Z" opt arg4: $gmt ( boolean ) The time will be not converted to GMT if FALSE is passed. If the value is not passed TRUE (do convert) is used as a default. ret: $time_str (string) The string that represents the specified time since: 2.0.00 Examples: Use current time, the default format and convert to GMT: $fmtdate = Apache2::Util::ht_time($r->pool); Use my time, the default format and convert to GMT: my $time = time+100; $fmtdate = Apache2::Util::ht_time($r->pool, $time); Use the time the request has started, custom format and don't convert to GMT: my $fmt = "%a, %D %H:%M:%S %Z"; $fmtdate = Apache2::Util::ht_time($r->pool, $r->request_time, $fmt, 0); See Also mod_perl 2.0 documentation. Copyright mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. Authors The mod_perl development team and numerous contributors. perl v5.18.2 2015install::TempContent::Objects::mod_perl-2.0.9::docs::api::Apache2::Util(3)
All times are GMT -4. The time now is 01:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy