Sponsored Content
Full Discussion: Really Stupid
Top Forums UNIX for Dummies Questions & Answers Really Stupid Post 19763 by myspirit on Tuesday 16th of April 2002 02:29:47 PM
Old 04-16-2002
Lightbulb running a program

Should be pretty simple, file extensions are not required, so the compiled object of your C++ program will be something like myprogram to execute, make sure that the file permissions are set to allow execution (for example, if you do this command: chmod 111 myprogram , then everyone will be able to execute the file. To run it, simply enter myprogram at the command line!Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Really New and probably stupid...

I am interested in installing a Unix operating system onto my PC. I was wondering which system would be the best for a total newbie and also how much knowledge of programming languages do I need to get decent results with a Unix system? I really am starting from scratch so please help all that you... (1 Reply)
Discussion started by: Dr_KillBlair
1 Replies

2. UNIX for Dummies Questions & Answers

Stupid Question?

I have a SparcStation 10 and it came with an external CD Rom Drive. I am trying to install Solaris 2.6 Server on this machine from the Cd Rom. At the OK> prompt I type "boot cdrom - browser" and I get an error: scsi device not found:error = -1 or something to that effect. Does anyone have any... (9 Replies)
Discussion started by: jskillet
9 Replies

3. UNIX for Dummies Questions & Answers

I am stupid

I am trying to tar file to a local tape drive using tar cf /dev/rmt/0cn ./directory The process appears to run and I can see activity on the tape drive, but, then I use tar t /dev/rmt/0cn but I do not see anything there. I am running Solaris 8 on a 420R. (5 Replies)
Discussion started by: CoreyH
5 Replies

4. UNIX for Dummies Questions & Answers

Stupid question...

Hello, I've always been around systems that ran windows in one version or another, so I'm familiar with what/when/where/drivers/etc for that. I want to build a unix box to use as a place to learn and become more familiar with unix. I would also like to eventually convert it to a server to... (6 Replies)
Discussion started by: Cortney
6 Replies

5. UNIX for Dummies Questions & Answers

stupid question!?

fedora core 2 xx8. 5xx version (not sure! not sure how to look it up either..(except on boot sorry!!)).. :( the linux version I started on last year was an old redhet 6.0 version with only text mode.. back then for some reason I knew I how to get rid of whole directories without a) going through... (6 Replies)
Discussion started by: moxxx68
6 Replies

6. UNIX for Dummies Questions & Answers

One stupid question

Has anybody come across the situation when after openning the cover of HP9000 the PC will not start. We checked everything but did not manage to find any solution to that. The PS seems to be functionning (at lease we can hear it clicking). Please help us solving the problem. Thanks to everybody. (2 Replies)
Discussion started by: Andrey Malishev
2 Replies

7. UNIX for Dummies Questions & Answers

Stupid question

Hi all, Please excuse my ignorance - I'm a Cisco kid and my knowledge of Unix is somewhat flaky!! Basically we're running MRTG on an HP-UX server and wondered what the "-" means in the following text within the crontab file - -* * * * * root /home/mrtg/fwdev01.sh I... (3 Replies)
Discussion started by: freakydancer
3 Replies

8. UNIX for Dummies Questions & Answers

Stupid question

I just began learning how to use Unix, so forgive my stupidity. I know this is answered somewhere but it's pretty specific and probably easily answered. When I use some commands (particularly recently, the grep command) my terminal seems to freeze up. It switches out of bash mode and into the... (2 Replies)
Discussion started by: ems5311
2 Replies

9. What is on Your Mind?

Just did something so stupid...

Firstly I'm learning shell scripting and I came across this example in Classic Shell Scripting dirpath=`eval echo '${'"$envvar"'}' 2>/dev/null | tr : ' ' ` And I immediately became perplexed as to how $envvar gets expanded in between the surrounding single quotes, until 20 minutes later i... (2 Replies)
Discussion started by: Riker1204
2 Replies
AUTORUN(1)																AUTORUN(1)

NAME
autorun - automatically mounts/unmounts CDROMs and executes /path_to_cdrom/autorun after mounting SYNOPSIS
autorun [-lmqv?V] [-a EXEC] [-c CDPLAYER] [-e STRING] [-i MILLISEC] [-n STRING] [-t STRING] [--autorun=EXEC] [--cdplayer=CDPLAYER] [--interval=MILLISEC] [--lock] [--mountonly] [--notify=STRING] [--notify-insert=STRING] [--notify-eject=STRING] [--quiet] [--verbose] [--help] [--usage] [--version] [cdromdevices...] DESCRIPTION
autorun automagically recognises all available CDROMs in your system, mounts them upon insertion and executes a possible 'autorun' exe- cutable on the CD. To allow an ordinary user to do this you have to add the options user,exec in /etc/fstab to the CDROMs you want to use. You may also use Autorun.desktop for KDE. Just place it in your Autostart folder. Command strings are parsed and %P% is replaced by the mountpoint path. %D% is replaced by the device path. After that the command string will be executed using /bin/sh -c "command string"; OPTIONS
-a, --autorun=EXEC Execute EXEC, if the CD changes. This executable must be located on the CD. I.e. if you specify "--autorun=myprogram", and your CD is mounted under /mnt/cdrom, after the CD is changed, autorun will attempt to run "/mnt/cdrom/myprogram". (default "/autorun") -c, --cdplayer=CDPLAYER Run CDPLAYER, if an audio CD is inserted (default "/usr/bin/kscd") -i, --interval=MILLISEC The time to wait in MILLISEC between checks (default 1000) -l, --lock Lock the mounted media (unmount by hand) -m, --mountonly mount/unmount only (do not execute anything) -n, --notify=STRING Command STRING that will executed if the CD changes (default "/usr/bin/kfmclient configureDesktop") -t, --notify-insert=STRING Command STRING that will executed if a CD was inserted and the autorun executable "/autorun" or the one specified with --autorun was NOT executed. (default "/usr/bin/kfmclient openURL %P%") -e, --notify-eject=STRING Command STRING that will executed if a CD was ejected (default "") -q, --quiet Don't produce any output -v, --verbose Produce verbose output -?, --help Give this help list --usage Give a short usage message -V, --version Print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. AUTHOR
Harald Hoyer <Harald.Hoyer@redhat.de> There is a project web page at parzelle.de: http://parzelle.de/. AUTORUN(1)
All times are GMT -4. The time now is 09:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy