General :: C Code Compiles But Is Not Executed In Kubuntu?

Apr 14, 2010

I'm running kubuntu 9.10 in VirtualBox, i wrote the simplest "hello world" program in C, the code compiles, i ran it through a debugger and it seems to run fine. the only problem is nothing gets actually printed to the console.

heres the code:

#include <stdlib.h>
#include <stdio.h>
int main (int argc, char **argv) {
printf("hello world");

[Code].....

View 2 Replies


ADVERTISEMENT

Programming :: Make Compiles C++ Code?

Aug 8, 2010

I'm developing a new command to be executed on the grub shell. However for some reason the .c file I added doesn't get compiled. How do I notify make of this new file?When you type in the make command, a load of gcc commands come up, where do these come from?

gcc -Ikern -I./kern -I. -I./include -I./gnulib -I./include -Wall -W -DGRUB_LIBDIR="/usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`" -DLOCALEDIR="" -DGRUB_MACHINE_PCBIOS=1 -DGRUB_UTIL=1 -MD -c -o grub_setup-kern_file.o kern/file.c

I know this because I typed in random letters but the compiler continued on. However tried it on an existing file it came up with a compile time error.

View 3 Replies View Related

Programming :: Following Code Compiles, But Does Not Work?

Nov 8, 2010

Put simply, the following code compiles, but does not work, and I have no clue why (despite reading extensively about rand()). In the interest of full disclosure, this is for a school project.

Code:
/*
* Dice.c

[code]....

View 4 Replies View Related

Slackware :: What Is The First Code Executed In The Kernel

May 29, 2011

I am looking at the kernel code (just out of interest). What would be the first piece of code the kernel executes when the machine boots?

View 1 Replies View Related

Ubuntu :: Compiles Are Extremely Slow

Aug 12, 2010

At work, we use Ubuntu to compile large numbers of C, C++, Java, and AIDL files.My system is a Core i7 Quad-Core with 8GiB of RAM. Prior to this install, it ran Ubuntu 9.10, 32-bit. A basic compile took roughly 45 minutes.I just did a clean install with (x)Ubuntu 10.04 64-bit. After setting up the build environment to allow 32-bit libraries (mobile development), a compile took roughly an hour:15.

View 2 Replies View Related

Software :: Trouble Finding Nvidia 64 Bit Driver That Compiles With GCC 4.3

Jun 21, 2009

I just installed the latest SimplyMepis 8.02, 64 bit and I can only find a driver that compiles with GCC 4.1. This is, of course, not accepted in the installation process, so it shuts down.If someone reading this knows of one, please direct me to a 64 bit Nvidia driver for a GFX260 chipped (XFX) card that will run with GCC 4.3.

View 5 Replies View Related

General :: When Was Script Last Executed?

Jan 18, 2011

I have a script scheduled to run with Crontab at 5am each weekday.The script is all good and executes manually (is just a simple stop/start of a service)I have reason to believe that it is not executing according to schedule.I am looking to see when a script was last executed.The script is executing accordingly (long story short, I forgot it was Tuesday). I would still like to know how to check a last-execution time.

View 1 Replies View Related

General :: Which Script Gets Executed?

Jun 16, 2010

How can I find out which script runs and automatically mounts any usb drive inserted? This script seems to be faulty because it fails on ext3 disks but functions fine on NTFS or HFS+ disks. If I can find out which script it is maybe someone can help me fix it?

View 14 Replies View Related

General :: Script Is Not Being Executed During Shutdown?

Feb 5, 2011

why a script is not being executed during shutdown. I have a script in 'init.d' that works properly from command line. It also works fine at boot. My problem is that it does not execute at all on shutdown. I am using all the standard rc.d stuff for the script. Here are my LSB tags:

Code:

### BEGIN INIT INFO
# Provides: setwebpage
# Required-Start: $network httpd

[code]....

When I check the rc?.d directories, the appropriate links are there with the proper NN. This script has to FTP a couple of files to a remote server so the network is required and the script should be run very early in the shutdown process. However, the first thing the script does is send a message via 'logger' indicating it is executing with the 'start' or 'stop' parameter. The 'stop' message never shows up in the log thus I have to conclude that it simply is never executed.

View 8 Replies View Related

General :: .wav File Executed By Script

Dec 28, 2010

I have a .wav file that ask "what's is your name in a robotic/computer voice. Is there I way I can execute that .wav file to execute as the script itself ask "What is your name?" giving the illusion that the computer is asking the question?

View 7 Replies View Related

General :: History Of Commands Executed By Users

Apr 16, 2010

i am working with linux security auditing project on my Servers.I want to find out all the commands executed by individual users.i think using last command,find out the login details.But how can find out the commands executed by each users on all logins except "history".?

View 2 Replies View Related

General :: Script To Know Whether Croned Or Manuall Executed

May 20, 2011

How to find whether the script executed manually or executed from cron job?I tried $SHELL but this don't work

View 5 Replies View Related

General :: Writing Command Executed Into Logfile?

Jun 7, 2011

Currently we are using Unix machine & the activity are logged in the file using following code used in profile

.profile code

# /ln/aud_root/dds_ibm/.profile
trap 'print "not allowed"' INT
trap 'print "not allowed"' QUIT
trap 'print "not allowed"' TSTP

[Code].....

View 2 Replies View Related

General :: History With Date And Executed File/command?

Feb 17, 2011

what is the tool to get the history inclduing the user name,command time and from which file/folder the command is executed.

View 1 Replies View Related

General :: Edit History To Remove Few Commands Executed?

Jun 30, 2010

Suppose when I issue history command it is showing 100 entries with number attached to each command executed.

how to edit the history to remove few commands executed by me so as to protect the system from other users.

View 11 Replies View Related

General :: Variable Storing The Previously Executed Command?

May 23, 2010

I want to use PROMPT_COMMAND variable to build a history of all the commands i execute. So Basically i want to append the last executed command to my own command log file. How can i find the last executed command ?

I want to add PROMPT_COMMAND="echo $last_executed_command >> my_command_log" But I am not sure how to find the last executed command

View 2 Replies View Related

General :: Check Weather A For Loop Has Executed Properly ?

Jul 13, 2010

I want to check weather a for loop has executed properly

Code:
for name in `awk -F: '{printf " "$1}' /etc/passwd`;do
echo $name;done
[ $? -eq 0 ] && echo "SUCCESS" || echo "Failed_to_fetch_the_user";

Every time this gives output as SUCESS even If I change /etc/passwd to other file name.

How can I resolve this ?

View 4 Replies View Related

General :: Boot - What Are The Various Programs Or Process That Gets Executed When A Machine Starts

Aug 2, 2010

what are the programs or process that gets execututed when a linux start. ie starting from the grub (linux bootloader)

View 3 Replies View Related

General :: Gnome-terminal/bash - Cancel Inserted Commands That Will Be Executed Later?

Mar 13, 2011

$ execute_some_long_command <command is executing> <Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console>

How to let execute_some_long_command finish, but not execute inserted things?

View 1 Replies View Related

General :: Security - Copy Password From Mono-executed KeePass2 To Xterm?

Apr 7, 2011

I use KeePass2 to access username/password information in a Dropbox file. This allows convenient access from multiple devices. I can't seem to copy a password to the clipboard on my Linux 2.6.27.41-170.2.117.fc10.x86_64 system, however, in order to supply the password to a prompt in an xterm(1). I've tried both Ctrl+C/Ctrl+V and highlighting and mouse button 2 clicking. The KeePass2 program on the Linux system is executed by Mono.

How can I copy the password to the xterm(1)?

[Aside: I think we need a "KeePass" tag.]

View 1 Replies View Related

General :: When Put This Module To Be Executed Via Cron, It Doenst Work And An Email Is Generated?

Jul 5, 2011

I have installed CPAN module Spreadsheet::WriteExcel, to generate some reports. Now when i execute my perl module from command line. it works fine and generates the excel file. When i put this module to be executed via cron, it doenst work and an email is generated. My entry in cron tab is as follows:2 14 * * * perl /scripts/postpaidRecon/postpaid.plThe email i receive in /var/spool/mail/root for module failure is:

Subject: Cron <root@kblhpw101> perl /scripts/postpaidRecon/postpaid.pl
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>

[code]....

View 3 Replies View Related

General :: Pass Option To LILO In Order To Have Script / Command Executed At / After Boot

Aug 28, 2009

I have one distro installed, LILO as the boot loader, and i wonder if it's possible to duplicate the lilo entries with an option which executes some script or command during, or after the boot.Actually, i installed a Slackware + autolaunching virtual machine, but i have two VM, so i need to autolaunch one of them. May i choose it from the very beginning ?

View 9 Replies View Related

General :: Set Up New Keybinding For Finding Last Command Executed Using The First Few Characters Of The Command In Csh?

Jul 21, 2010

I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.

View 1 Replies View Related

General :: "ps" Command Not Executed In Script When Using Crontab

Jun 4, 2011

I wrote a simple script to see if firefox is running. However, the ps command is not executed, when I open the logfile I see: "DEBUG LINE 4" and not DEBUG LINE 5, so "ps -e" is never executed despite using the full path of the ps command.

Here is my script:

#!/bin/bash -l
# simple script to test if firefox is running...
PS=/usr/bin/ps echo "DEBUG $LINENO"
$PS -e | fgrep firefox echo "DEBUG LINE $LINENO"

View 6 Replies View Related

Ubuntu :: Priority To Hard Disk Containing Kubuntu Login To Kubuntu But Can't Get In To Windows7?

Sep 15, 2010

I have two OS in my system. Windows& and Kubuntu. Both are in separate hard disks. I was using both. In between i have upgraded my system. now when i am giving priority to hard disk containing kubuntu, i can login to kubuntu, but cant get in to windows7. i have upgraded grub but not working. when i am giving priority to hard disk containig windows7 it enters and work properly. but not working in the previous.

View 1 Replies View Related

Ubuntu :: XP / Kubuntu - If Delete Kubuntu What's Happen To My Boot Cycle

Mar 31, 2010

XP Pro SP3
Ubuntu 9.10
Kubuntu 9.10

Tri-booting. They were installed in the order I listed above. I ran into a few bugs with Kubuntu, so I no longer want to use it. I want to use GParted on a LiveCD to format Kubuntu and expand my Ubuntu home partition to sit on top of Kubuntu's space right now. If I nuke Kubuntu, will Grub still exist with my Ubuntu/XP entries to boot?

View 4 Replies View Related

Ubuntu :: Point To Kubuntu CD Instead Of Kubuntu Repository?

Mar 7, 2011

I would like to apply KDE on my Kubuntu because the current one blew up. But each time I to sudo get-apt it seems to be fetching from the cloud. Is there a way I can make it to read from my local Kubuntu CD? I have both Ubuntu 10.04 LTS and Kubuntu Live CDs.

I believe the local disk read should be faster to translate than to bite the bytes across thousands of miles over the wire right?

View 1 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

Fedora :: Where Is Xorg Executed From

Dec 8, 2009

I need to add -audit to the process /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-MTmpH6/database -nolisten tcp vt1

And have added -audit to the line in /etc/X11/xdm/Xservers but with no luck. I can't seem to find where this thing is getting launched from!

View 1 Replies View Related

Fedora :: Can't Get Any Of Page Executed

Oct 19, 2010

i have install php and make proper confgiuration as said in various books and forums.but |all what i gotis just blankpage which means it knows that thereis the file at given folder but it cannotexecute.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved