473,408 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

exec and junk

4
Hi ,
I have seen a program like this
exec { Program } ("junk", filelocation);

What is this "junk" for ? Without this the file is not being opened?
Jul 9 '07 #1
4 1096
KevinADC
4,059 Expert 2GB
Hi ,
I have seen a program like this
exec { Program } ("junk", filelocation);

What is this "junk" for ? Without this the file is not being opened?
Is this supposed to be perl code? If it is, it makes no sense.
Jul 9 '07 #2
akoos
4
Is this supposed to be perl code? If it is, it makes no sense.
Yes
I will make it more clear

exec { $browser } (junk, $file);

where $browser is the internet browser exe location and $file is the name of the html file which is trying to be opened
I have no idea about the "junk" thing . That is my doubt?
Jul 9 '07 #3
savant
1
Hi ,
I have seen a program like this
exec { Program } ("junk", filelocation);

What is this "junk" for ? Without this the file is not being opened?
When you exec a program with a

Expand|Select|Wrap|Line Numbers
  1. exec {'path/to/program'} @args; 
syntax, the first element of the @args list contains the process name, so you can put anything there and it would show that name in the process list. It is not essential for running a program, so the programmer put the word "junk" in there probably just so that he doesn't have to think about what to put there :)
Jul 9 '07 #4
KevinADC
4,059 Expert 2GB
DOH! Thanks savant, I'm not sure what I was thinking last night when I read this question. Your explanation is spot on.
Jul 9 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Andre Phandana | last post by:
Hi, I tried to send email from my server using mail() but the email goes to @xyz.com junk mail folders. Why is that so? How can I fix it? Thank you, --Andre Phandana
5
by: JW | last post by:
Hi, I don't seem to get any results from the following use of Runtime.getRuntime().exec(cmd) using Java 1.4 on Redhat linux. Suppose that in the same directory as my java file below, I have...
1
by: Andr? Roberge | last post by:
I have the following two files: #--testexec.py-- def exec_code(co): try: exec co except: print "error" #-- test.py--
0
by: Jan | last post by:
I store sql-commands in a database table. In the first step I get the sql command out of the database table with embedded sql. In the second step I try to execute the command, which i got from the...
5
by: risha | last post by:
void FlashReadM(volatile unsigned long *fl_ad,unsigned long abb) { unsigned long ulvald; abb=2; ulvald=0; //fl_ad=(volatile unsigned long *)0x8020; ulvald= *(fl_ad); //return ucVal; }
17
by: comp.lang.tcl | last post by:
The TCL command I am using will do a command-line action on a PHP script: set cannotRunPHP I have to do it this way as both the TCL script and the PHP script run as CLI. However, "info.php"...
16
by: Jeff | last post by:
Im trying to memcpy a buffer from a filled in simple structure. When I memcpy and then print the resulting buffer, I see 7 locations that have junk before my data starts. My data structure is: ...
14
by: HB | last post by:
As many of us know, when we send legitimate emails to real customers from our apps, those emails often end up in the Hotmail (and MSN -- and AOL, too) junk folder. I've done a lot of testing with...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.