Ubuntu :: Different Results When Running In Command Prompt And Via Script?

May 26, 2010

i wonder if it is usual that the results of running commands via the command line is different from running them in a script file. my problem is that, i've to run 'modprobe -r e100' and 'modprobe e100' before suspend my machine via pmi in order to resume it properly. i wrote a script containg EXACTLY the same commands as i typed in the terminal/console but the result was not the same. the machine cannot be resumed as expected if i run the script file.

View 2 Replies


ADVERTISEMENT

General :: Saving The Results Of The Time Command While Discarding The Results Of The Command Being Timed

Apr 6, 2010

I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:

$ time ./foo > /dev/null >> output_from_time_command.txt

View 1 Replies View Related

Ubuntu :: Running A Command In The Alt+F2 Prompt Possible In Bash Scripts?

Jan 5, 2010

Is running a command in the Alt+F2 prompt possible in a bash script?I need this for a launcher for gnome-shell.For it I have written a little script to check if the process gnome-shell is alive and act accordingly.The script works fine, I just don't know how to write "debugexit" to the Alt+F2 prompt, as that is the only decent way I have found to shut gnome-shell down and going back to gdm desktop smoothly.

View 1 Replies View Related

General :: Command Prompt Ftp To Ftp Server Running On Windows?

Dec 27, 2010

I am using on Windows Vista, Filezilla server. I have it set up to be accessed via outside IPs and when I use a client on the IP I have it connects normally using Filezilla client. On the same machine I have Ubuntu running in a virtual box and when using filezilla client in there it works fine. Now I want to try the command prompt. So I do the ftp xxx.xxx.xx.xxI enter the name and password and i get the ftp command prompt, but the commands are not working properly. when trying "ls" or "cd" these commands do not work. "cd" tells me that the current directory is "/" root, but this does not make sense in the windows operating system. Now the filezilla client is taking the user in the application window directly to the root folder of the permitted filespace granted to that user. How can the same be done from the command prompt, if there is a way? It is as if the command prompt takes me to the root which does not exist or even have correct permissions to move in. Is there any way to be taken to the correct directory directly, or move there especially when the slashes are the wrong way around etc?

View 1 Replies View Related

General :: Bring Back The Command Prompt When Running An Infinite-loop Containing Program?

Jan 13, 2010

When running a program that has infinite loops in the terminal , how to bring back the command prompt ? ( I'm using Fedora core 5 )

View 7 Replies View Related

Red Hat :: Command Line Prompt But Not The Correct Bash Prompt?

Feb 2, 2011

I'm running Red Hat Linux 5.4 on HP DL580 server with 16 processors and 64 GB of RAM. I'm connecting to the server remotely through SSH. after entering the password, it takes time to return the command line, if I click ctrl+c during this time, I'll have the command line prompt but not the correct bash prompt (I have to run bash to pass to my correct prompt).I tried to install Apache on the server, ./configure took 4 hours to finish instead of 1 or two minutes, Oracle installation same behavior. Server Disks are mirrored using RAID controller.

View 6 Replies View Related

Ubuntu :: Setup Command Not Found In 10.04 Command Prompt?

May 6, 2010

In Ubuntu 10.04 grub command prompt setup command does not exist for installing grub.I am trying to recover my Feodra12 OS.Did anyone find alternate command for setup in grub command line for Ubuntu 10.04 ?

View 2 Replies View Related

General :: Running Git-svn With Cron Results In Garbage

Mar 25, 2010

I've setup a git-svn repo with cron to fetch from the svn repo daily. I have a script to do the fetching, and this is what is invoked by cron. Everything is fine with the repo, and the script works fine when executed manually. However, when it runs under cron, empty files get dropped into the .git directory. The files have names that look like they are some base64 output, e.g. juTrvjP6m8 and kcKf3hu3b4. Two of these files show up for every cron run. I thought these might be commit hashes, but they're not, git-show says it's an unknown revision. I set-up the repo as follows:

[code]...

The last line pushes the repo to a separate (bare) public repo from which others can clone. I'm piping the output from the cron job to a file, which looks like this:

[code]...

The line "fatal: unable to run 'git-svn'" is alarming, but the fetch seems to go ahead anyway. Where are these empty garbage files coming from, and how to stop them? Am I in for bigger problems in the future?

View 1 Replies View Related

Ubuntu :: Can't See Results Of Job Scheduled With The 'at' Command

Oct 5, 2010

I scheduled a job, 'ls -a', with the at command, 3 minutes in the future. It looks like the job ran, but I cannot see the results of 'ls -a'. I accessed my mail with the 'mail' command and saw that the output of my scheduled job was message 1. I typed in '1' after the & prompt, and saw that the subject of the message was the output of my job, scheduled at the time specified with the 'at' command. I cannot see the output of the 'ls -a' command that I scheduled though. How do I see the contents of the message, and the actual output of the job.

View 1 Replies View Related

Ubuntu :: Sort Command Gives Unsorted Results?

Jul 15, 2010

It sure looks not quite sorted to me. See lines 3 and 4.

Code:
altair/root /root 250# sort -k1 < files.out | head -6
/bin base-files
/bin bash
/bin/bash bash
/bin bsdutils

[Code]...

View 9 Replies View Related

Ubuntu Servers :: Shutdown Command Results In Lock Up

May 2, 2011

When I shutdown my server it seems to lock up. I use ssh for a headless unit and I can reboot fine, but I told it to shutdown and disconnected me and stopped logging (as far as I can tell) and then nothing. The lights stayed on and I had to press the power button. Is there a way to keep the logger running or to look someplace other then messages. I'm not great with logs.

View 8 Replies View Related

Software :: Running 'dd' To A FLASH Drive Results In Corrupted Volume/partition?

Oct 13, 2010

I am trying to install an ARM version of Ubuntu onto an SD card for a BeagleBoard from a .img file downloaded from http://releases.ubuntu.com/lucid/. I have tried several files of .img and .raw downloaded from several places. I am using 'dd' on a PC running Ubuntu 10.0.4. My question doesn't relate to the BeagleBoard at all since I never get that far. The files for Angstrom that I copy directly onto a formatted SD card boot up fine on the BeagleBoard, but I need Ubuntu on there and can't do it with these image files. The command I use is:

sudo dd if=<the downloaded file> of=/dev/sdb1 After it asks the root password, it chugs along for some time and then gives what appears to be a successful response like the following. (This time it was for the Maverick version of Ubuntu in a .raw file):

leiphasw@dell-linux:~/Downloads/ArmMaverickUbuntu$ sudo dd if=maverick-preinstalled-netbook-armel+omap.raw of=/dev/sdb1
4090632+0 records in
4090632+0 records out
2094403584 bytes (2.1 GB) copied, 167.38 s, 12.5 MB/s

[Code]...

View 6 Replies View Related

Programming :: TCL / Expect - IF Results Are Different Then Send A Command?

Dec 11, 2010

trying to see IF i dont get the right results repeat the command until it will or quit after 3 tries....

expect -exact "->"
send -- "test_read_register 0,0x37
"
if {! [regexp {Address 0x00000000} do send -- "test_read_register 0,0x37

[code]....

It should read

Read: Address 0x00000037, Data: 0x0000000b

but sometimes it comes out to this

Read: Address 0x00000000, Data: 0x00000000

therefore ill have to run the command again IF I Dont get the right results...

View 1 Replies View Related

Ubuntu :: Send The Results Of A Command Line $du -max-depth=1 To A Zenity Message Box?

Jun 14, 2010

I'm trying to send the results of a command line $du --max-depth=1 to a zenity message box.I want to create a .sh script that I can run as a Nautilus script that will open a zenity message box with a listing of sub-folders/sizes. $DU with options, will provide the results in a terminal window, but I can't seem to get it into a zenity message box. I've tried gxmessage also, but no go.

View 2 Replies View Related

General :: Tomcat - Why Does 'ls' Command Return Some Results In [squarebrackets].jar

Nov 25, 2010

Below is an example output of what I see when I run the 'ls' command on some directories in linux (this is from a tomcat/common/lib directory). However I'm not clear on why some of the filenames are appearing inside [square brackets]

-rw-r--r-- 1 root root 1038825 Aug 30 2006 [ant].jar
-rw-r--r-- 1 root root 566376 Apr 1 2008 [commons-collections].jar
-rw-r--r-- 1 root root 107392 Aug 18 2006 [commons-dbcp].jar

[code]...

View 2 Replies View Related

General :: Unix - Cat Command To Save Results Of Other Commands

Nov 26, 2010

This question may be silly and super easy for linux connaisseurs, but I was just wondering, for instance, I want to use the >find command to search for a file and send the results to a text file

View 5 Replies View Related

General :: Output To A Text File, The Results Of Compound Command?

Jul 28, 2010

How to output to a text file the compound command:

Code:
find -type f -print0 | xargs -0 grep -l "desired text"
I have not been able to find the answer.

[code]...

View 5 Replies View Related

General :: Include Command Results To Send To Admins Via Mail

Jul 16, 2010

how to include my command results in a script? Basically what the script does is it checks the status of a service within the linux server, then sends an email when done. I want to include the results of my status check to my mail when sent.

i.e.
service dhcp3-server status Status of DHCP server: dhcpd3 is running. <---this I want to include in the mail that is sent out via script.

View 6 Replies View Related

General :: Reusing Find Command Results In Mplayer Arguments?

Jan 22, 2010

I wanted to supply mplayer with the output of find command as arguments. The error returned showed spliced names of files whenever spaces occurred. I have subdirectories in my /home/my_user_name/Music/ directory, and in them multiple *.oga music files. The actual command that I issued was

Code:
mplayer $(find /home/my_user_name/Music/ -name "*.oga")

mplayer started but then was looking for broken file names. I am thinking quoting has to do with it to preserve the filename as one string but different attempts were met with inroads:

Code:
mplayer `find /home/my_user_name/Music/ -name "*.oga"`
gave me the same result and
Code:
mplayer `"find /home/my_user_name/Music/ -name *.oga"`

complained about wrong mplayer syntax.

View 1 Replies View Related

Software :: Top Command Version 3.2.6 Invalid Results Compared To CollectD?

Mar 11, 2011

I am trying to get the correct CPU usage using top. I ran collectD and I got different results.This especially happens when the CPU usage is close to 100%.Has anyone experienced having the top command report different results than other CPU usage utilities?

View 5 Replies View Related

General :: Login Prompt Never Displays On RH Running In VM?

Jun 2, 2011

Linux version 2.6.18-194.el5 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:43 EDT 2010Am using VWware ESX to host this guest operating system. When it clears post, the screen goes to the red background you typically see right before the login prompt comes up... but it never does. If the machine made it on the wire I can putty to it, but through deploying these, the machine isn't always on the wire and I need to be able to use VMware's viewer to gain access to it

View 2 Replies View Related

Fedora :: Laptop Won't Boot - No Login Prompt - X Isn't Running

Jul 12, 2010

My FC12 laptop won't boot. During the attempted boot, after blue/white progress bars finish displaying on the bottom of screen, nothing more seems to happen. The screen isn't totally blank in that I seem to have a text cursor and keyboard input is displayed. But, no prompt, no login prompt, X isn't running, etc. If I hit ESCduring boot, it displays the boot messages and the boot sequence stops after "Starting atd". I'm not sure if it's related, but I had previously experimented with creating a new xorg.conf file by running "Xorg -configure' and was testing the new file with "X -?? /etc/x11/xorg.conf.new" (I forget what the -?? option was). I assumed that this would not overwrite the /etc/x11/xorg.conf file and that if I ran into problems, that the original xorg.conf would be in place. how I can get this miserable thing to boot?

View 4 Replies View Related

Ubuntu :: Creating A New Command Prompt?

Feb 6, 2010

Is it possible to create a new command prompt in Ubuntu? I have a assignment and I don't fully understand it. I have to make c files and then open them in the command prompt. Would this happen in a new command prompt or I'd have to use the already existing one? Is this even possible?

View 4 Replies View Related

Ubuntu :: Command Prompt Appears Instead Of Gui?

May 16, 2010

When i boot to ubuntu 10.04 lts. command prompt appears instead of gui interface is this a bug. I had made a new installation of ubuntu 10.04 lts 64 bit.

View 1 Replies View Related

Ubuntu :: Get To The Gui From The Command Line Prompt?

Jun 5, 2010

Is there a way to get to the gui from the command line prompt? I am using Ubuntu 8.04, my computer us telling me there is an error and will only boot to the cli not gui.

View 1 Replies View Related

Ubuntu :: 10.10 Boots Only To The Command Prompt?

Oct 13, 2010

I just upgraded my desktop to 10.10. All seemed to go fine. The computer then prompted for a reboot, and on rebooting it boots to the shell prompt.

View 6 Replies View Related

Ubuntu :: How To Edit In A Command Prompt

Dec 18, 2010

i somehow managed to mess up my install of 10.10 I used the alternate AMD 64 install so now when I login it is only a text prompt. This leads me to believe that I am running in Ubuntu Server. I read this article:

[URL] but my network is not setup!! So I tried to do this: [URL] but when I get to:

Code:

sudo vi /etc/network/interfaces

I dont realy know how to edit the file.I basicaly see

Code:

# The loopback network interface
auto lo
iface lo inet loopback

[code]....

View 9 Replies View Related

Ubuntu :: Command Line Prompt Available On The Desktop?

Mar 27, 2010

is it possible to have a command line prompt available on the desktop, operating sort of like conky?

View 5 Replies View Related

Ubuntu :: When Login Via Ssh To A Server Only A $ At The Command Prompt

Aug 13, 2010

I'm getting some weird behavior when I log in via ssh to a ubuntu server. When I log in, there is only a $ at the command prompt, no user name. The arrows don't work, they just put the arrow characters in the prompt. Everything else seems to be ok. Also, when I say logged in as User, I meant a new user I just created.

View 2 Replies View Related

Ubuntu Installation :: Only Get Command Prompt After Upgrade?

Oct 17, 2010

After upgrade to 10.10, I only get the command prompt. Fortunately, all my XP Pro machines are running, and I am using one of them to access this Forum. I suspect that nVidia graphics driver did not load correctly. running startx at the command line gives numerous lines of text apparently understandable xorg gurus. It looks like nvidia_drv.so did not load and module "nvidia" did not load [loader failed, 7] and next line says no drivers loaded.

View 4 Replies View Related







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