Sponsored Content
Full Discussion: Switching over to C++
Top Forums Programming Switching over to C++ Post 302796435 by achenle on Friday 19th of April 2013 02:07:36 PM
Old 04-19-2013
Quote:
Originally Posted by Ribosome
Hey Thank you all for enlightening me!

I've not worked much on perl, but in every C++ project I've worked on I've seen the reporting scripts were done especially in PERL and thats why I was confused.
The task which needs to be done here is to read some log files, extract the data such as folder id, number of files it contains, processing time, no. of successfully processed files and no. of failed files etc and put them in an excel file.
The script is good and doesnt seem to need any fix but it takes some time to process millions of data. So the only concern here is to get this thing done in any other language for optimization.
So it takes a while. So what? Is there any reason you need the data faster?

You're probably costing your employer $100-200 an hour when everything is added up. If not more.

There really needs to be a good reason to spend lots of time simply speeding up something that's already working.
 

10 More Discussions You Might Find Interesting

1. Solaris

Switching between users

Hi folks, could anyone please tell me how can i switch between two users without going thru the su(i.e. root)? is there any such command? thanks in advance, thell (1 Reply)
Discussion started by: thell
1 Replies

2. Shell Programming and Scripting

su (switching to other user)

Hi, what is the use of the double quotes and !! in the following code segment: su - user1 << ""!! > /dev/null 2>&1 echo "welcome user1" EOF !! also what is the difference between below: su - user1 << ""!! > /dev/null 2>&1 and su - $USER << ""!!!> /dev/null 2>&1. Note: $USER =... (1 Reply)
Discussion started by: bjagadeesh
1 Replies

3. Shell Programming and Scripting

su (switching to other user)

Hi, what is the use of the double quotes and !! in the following code segment: su - user1 << ""!! > /dev/null 2>&1 echo "welcome user1" EOF !! also what is the difference between below: su - user1 << ""!! > /dev/null 2>&1 and su - $USER << ""!!!> /dev/null 2>&1. Note: $USER =... (2 Replies)
Discussion started by: bjagadeesh
2 Replies

4. Shell Programming and Scripting

Switching between two users

Can any one tell me : How we can switch between two users without prompting for the password. (In the SHELL SCRIPT can we fetch the USERID and PASSWORD from a specified file, without using SUDO command)? (2 Replies)
Discussion started by: deepusunil
2 Replies

5. Linux

Switching from one DNS to another

Hi all, we have running some linux servers with sles9 and we have some problems with our dns servers. Sometimes they don't like to work. However, is there a parameter to enable faster switching between two ore more dns servers? Thx for your help in front Regards frank (5 Replies)
Discussion started by: ortsvorsteher
5 Replies

6. Shell Programming and Scripting

switching users

Hi I want to write a script which can switch between super users.But it asks for the password at the prompt.How can I manage in the script so that it didnt ask me for the password at the prompt. (1 Reply)
Discussion started by: monika
1 Replies

7. OS X (Apple)

vt switching

greetings, i hope this hasn't been covered previously. has anyone heard of a .kext or daemon that would allow linux or (open)solaris-like vt switching? googling didn't help much.. i know os x allows a '>console' login from loginwindow.app, but i'm mainly interested in this because there are... (0 Replies)
Discussion started by: bamdad
0 Replies

8. Shell Programming and Scripting

Switching lines

Hi I'm quite new with linux. Very simple, I need to swap every 2 lines in a file. Example INPUT: a a a b b b x x x y y y s s s t t t OUTPUT: b b b a a a y y y x x x t t t (5 Replies)
Discussion started by: hernand
5 Replies

9. Solaris

The switching in the different AP's

HI, I am using the windows 2003 server R2 in there we are using the putty as to access the different AP's now from the primary AP i want to login to several different AP's using a script what the script will do is :- input a text file in which list of different ap's and the corresponding... (0 Replies)
Discussion started by: amiglani
0 Replies

10. Shell Programming and Scripting

Case switching

Hello Folks I am writing this simple program but I am stuck at this point. Here is the snippet from my script where I have issues. 3) echo "Current Directory: $(pwd) Menu 3" echo -e "Enter a file name\n" read fname if then ... (5 Replies)
Discussion started by: Tuxidow
5 Replies
TOMAC(1)						      General Commands Manual							  TOMAC(1)

NAME
tomac - Transmit files to the Mac SYNOPSIS
tomac [ - options ] [ files ] DESCRIPTION
tomac takes the files specified in tomac and transmits them to the Mac subject to the options specified. If files also specifies directo- ries they are followed recursively, and all files found will be transmitted. If no files parameter is specified, binhex reads a MacBinary stream from standard input and transmits the files found; folder information is lost. OPTIONS
In the absence of any options, tomac takes the specified files and transmits them to to the Mac using the XMODEM protocol. Directories named in files are followed recursively, all files found will be transmitted. Files are assumed to be in MacBinary format. However, if the filename ends with .info the file is assumed to be the info fork of a MacIntosh file split amongst more than one file. In that case the files with .data and .rsrc extensions are also read (if present). Also, if the info fork is mentioned in the parameter list, the names of data and resource forks can also be mentioned, but those will be ignored (this is to allow wild-card expansion by the shell.) Further, if some form of AppleShare is supported by the installed program, and if the current directory, or one of the directories found during recursive processing, is a directory in the format of the supported version of AppleShare, those files will be handled according to the properties of AppleShare. -r No intelligent file-processing is performed; all files named are assumed to be plain resource files, and are transmitted as if they were MacIntosh resource files with creator "RSED" and type "RSRC", unless another creator and/or type are specified. -d No intelligent file-processing is performed; all files named are assumed to be plain data files, and are transmitted as if they were MacIntosh data files with creator "MACA" and type "TEXT", unless another creator and/or type are specified. -u As -d, but the codes for CR and LF are interchanged. -U Is a synonym for -u. -c creator Defines the creator name to be used if one of the previous options is specified. -t type Defines the type name to be used if one of the previous options is specified. -l List every file and directory processed. -i Do not transmit files, give information only (implies -l.) -q Ask the user for every file/directory whether it should be visited (implies -l.) -x Use the XMODEM protocol for transmission. -y Use the YMODEM protocol for transmission (not yet supported.) -z Use the ZMODEM protocol for transmission (not yet supported.) -o Use the pre-beta version of XMODEM. -T Allow for time-out detection during the protocol. Normally you will not need this option because on occasion, when network delays do occur, time-out detection interferes with a good transmission. Also, when for some reason the connection is broken the program will normally receive a hang-up signal and terminate. However, in some situations it might be necessary to early detect time-outs (because of communication loss or whatever, without loss of connection). You should check whether use of this option has profits in your situation or not. -V Gives the patchlevel of the program, and other information. Other options are ignored and the program quits immediately. -H Give short information about the options. Other options are ignored and the program quits immediately. BUGS
As this is a beta release, there may still be some problems. SEE ALSO
macutil(1) AUTHOR
Dik T. Winter, CWI, Amsterdam, The Netherlands (dik@cwi.nl) Parts of the code are based on codes from: Dave Johnson. 3rd Berkeley Distribution October 22, 1992 TOMAC(1)
All times are GMT -4. The time now is 07:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy