Ubuntu :: Formatted Output To Terminal - Fields Need Updating

Jan 25, 2010

I'm writing a couple of programs in C and need to do something to formatting the output. I'm after producing something like a old mainframe screen or early micro where you could PRINT (x,y) to put something on the terminal where you want it. Learning GTK or such is not an option due to time constraints, and some fields need updating frequently during processing, so letting the terminal scroll is going to drive the operator up the wall pretty quickly.

View 2 Replies


ADVERTISEMENT

Programming :: Updating A Sequence Of Datetimes In Fields With Unique Contrains

Mar 14, 2010

I am faced with the following problem; I need to update all fields of type datetime without ... with the following sort data:01-01-2010 12:10:30.256 - this is just an example.these fields are restricted with a unique constrained. My question is how can I generate the above sort data, especially the last three numbers with leading point. After that how can I update a table with existing data with this newly generated data so that the fields really do carry unique data.As you probably can read out of my question, I read through the help in pgAdmin and came as far as generating date, maybe datetime but not the .123 number. And a little insert script I found in the help, that I modified as UPDATE resulted in updating only the last generated data in all required fields.

View 7 Replies View Related

Programming :: Show The Output Of These Fields In A Certain Way That Every Record Is Numbered?

Mar 25, 2010

i am reading a database flat file with the "awk" command which has 4 fields separated by colon ":" .I want to show the output of these fields in a certain way that every record is numbered e.g

1.some text
2.some text

Is there a way to do this?

View 14 Replies View Related

Ubuntu :: Password Fields In Terminal Won't Accept Text?

Nov 24, 2010

It's a pretty weird issue I'm having, when I need to provide access for a command in terminal IE: something using sudo, it just doesn't accept text. I thought it might be my keyboard at first (g15) but I tried copying and pasting the password into there and it just wouldn't do anything except for remain blank

View 3 Replies View Related

General :: How To Redirect A Terminal/tty Output To Other Terminal/tty

Dec 14, 2010

hello
I tried to find a good subject but it was the best of mine, anyway I'll explain it here.
some time I do some thing like installing a new application in Linux terminal of my office PC but it take a long time and I have to go home during its installation or configuration process that it is not good to cancel it.My current solution is abandoning the process until next day. I wanted to know is there any way to redirect an input and out put of a terminal to another one, if it works I can continue my abandoned process by ssh to my Linux office PC and redirect that terminal to my new remote sshed terminal from my home.

Thank a lot for any help.

View 4 Replies View Related

Fedora :: Odd Output After Selinux-policy-targeted Package Finished Updating?

Feb 20, 2010

I just updated my system via yum and got an odd output after selinux-policy-targeted package finished updating.

Code:
Updating : selinux-policy-3.6.32-89.fc12.noarch 14/80
Updating : selinux-policy-targeted-3.6.32-89.fc12.noarch 15/80
/etc/mock/koji* /etc/rc.d/init.d/dirsrv* /srv/git* /usr/autodesk/maya2010-x64/lib /usr/lib{64,}/nagios/plugins/check_mailq /usr/sbin/ns-slapd /usr/share/e16/misc* /usr/share/shorewall/compiler.pl /var/cache/cgit* /var/lib/git* /var/lib/koji* /var/www/git/gitweb.cgi /var/www/git/gitweb.cgi

Does anyone knows what that means?

View 2 Replies View Related

Ubuntu :: Starts Conky But Also Shows "output To That Terminal So You Can't Do Any Other Commands To That Terminal"

Jan 24, 2010

if you do the command conky in terminal, it starts conky ofcourse, but it also shows output to that terminal so you can't do any other commands to that terminal, Is their an option like you can do with the '&' sign in other cases? If you do the '&' sign with conky it still gives output, also the conky -d command gives output...

View 9 Replies View Related

OpenSUSE :: Terminal For Updating Gnome - Can't Write Password

Jun 25, 2010

I want to update my gnome to the latest version (2.30) because I have 2.28 so I go to terminal and enter the command "apt-get" or try "zypper dup" which both ask for root so I just add "sudo" before the commands and when it ask for the password it doesnt let me write it.

View 9 Replies View Related

General :: Logging - How To Keep A Live-updating Log File Open In Terminal

May 20, 2011

This must've been done before: I want to keep a log file open in terminal so I can monitor updates to it as they occur. My searches are coming up with everything but this situation... I must be missing some terminology or something key, because people do this all the time inside of other programs (NetBeans, or rails server, for example).

View 2 Replies View Related

Ubuntu :: Capturing ALL Output From Terminal To File?

Apr 17, 2010

I would like to capture all output spewed to a terminal session including processes that are terminated that were invoked from a script running in a terminal window. this is beyond capturing just stderr and stdout . for example

{
./script
} 2> stderr.cap 1>stdout.cap

if script is terminated (including because of memory violations) I get spewed output to the terminal I would like to capture that spewing to a file automatically or to a bit bucket /dev/null Is there another filehandle which can be redirected to do this? If so how or is there another way???

View 3 Replies View Related

Ubuntu :: Get Mouse Position In Terminal Output?

Jun 19, 2010

I want to know how to get the current coordinates of the mouse outputted to terminal, for use in a bash script.

View 1 Replies View Related

Ubuntu :: Capture Output From Synaptic Terminal?

Dec 9, 2010

In synaptic package manager when I expand "Details" tab (at the time when some software is installed or removed), I can see a terminal. I want to capture the output of terminal into a file. I tried to highlight and right click. But there is no context menu(copy, cut)

View 4 Replies View Related

Ubuntu :: Slow Down Text Output In Terminal?

Feb 15, 2011

I'd like to write a script that invokes a gnome-terminal session which slowly reads out text like the phosphor screensaver (could be anything, a log file, ascii art, song lyrics, whatev) and then closes. I can invoke a terminal using [gnome-terminal -e 'cat /var/log/dmesg'] but the output flies pass by too quickly.any way to slow it down? I know it seems like an odd request but if anyone has a suggestion I'd love to hear it.

View 3 Replies View Related

Ubuntu :: Save All Terminal Output To A .txt File?

Mar 15, 2011

I sometimes stick my neck out and provide somewhat detailed, and often risky, "Mr-fix-it" remedies for boot problems. Now, I know it's possible to amend each command with "whatever_command > whatever.txt" in which case it'll place the command output in a file in /home.

But if you're directing someone to run a lot of commands as I did here is it possible to save the output of all commands to a .txt file without amending each command?

Or is it already saved somewhere that I'm not yet aware of? I wouldn't be surprised if the latter were true, I just haven't yet found it

View 4 Replies View Related

Ubuntu Installation :: Don't Ave The Terminal Output From The Update Manager?

Sep 29, 2010

I have searched a lot for solutions of this problem, but there seems to be no solution that works for me. It was time to update my installation... AS I have NEVER updated it. So I ran the update manager and launched updates. Many packages completed, but linux-image-2.6.32-25-generic (2.6.32-25.44) gave me a lot of errors. I don't ave the terminal output from the update manager, but I have info from apt-get install -f. I am using root account.

Code:
root@ubuntu:~# apt-get upgrade vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y

[Code]...

View 3 Replies View Related

Ubuntu Security :: Post Terminal Output In Forum?

Apr 23, 2011

I've done some searching on googlubuntu for and answer to this but haven't found anything.

As a Linux newbie I was wondering if there are certain types of output from the terminal I should beware of posting for everyone to see? Also are there any codes; that, if I were to be asked to run and report the output on, should raise a red flag?

View 9 Replies View Related

Ubuntu :: Output Data To Running Process In Terminal?

Jul 10, 2011

There is text based game in the Ubuntu repos called gomoku (just 5 in a row) it comes with the package bsdgames. The manual page [URL] lists an option (-b) to run it in the background. I want to try that and if I know how it works create a simple graphical front-end. When I start the program with:

Code:
gomoku -b

it starts and remains active, the terminal does not return to prompt which is OK as the command is not finished. The manual says the program reads from stdin, and this might sound stupid but how to get anything there?

I've tried to pipe an echo command to gomoku which works but ends the program after is receives input.

Code:
echo "black" | gomoku -b

just finishes. After that when you type another command like:

Code:
echo "justsometext" | gomoku -b

gomoku tells it expects either black or white as input. So it forgot the previous "black" because it is a new instance.

How do I pass text to an already running gomoku?

View 2 Replies View Related

General :: Terminal Emulator - Output ?

Jan 10, 2011

What is the output of "date -u +%jXfce|sha256sum|sed 's/W//g'" if you run it in a terminal emulator?

View 3 Replies View Related

Ubuntu :: Edit Background Color Of Some Textual Output In Terminal?

Dec 28, 2010

When I type (in new 10.10) soem cmdline comands like "ls -l" then some of the directories have a different fore-and background color (e.g. black on green) while the remaining other directoreis are blue on white.

Where can I find out the meaning of the diferent colors and how can I change them?

If I go to menu

Terminal->Edit->Profile Preferences->Color

then I can set only the full overall background and foreground color. But here only certain parts have a different color. the main color (black on white) is suitable. I do not use system theme.

View 4 Replies View Related

OpenSUSE :: Get The RAM Memory On System In Terminal When Have 3 GB With An Output?

Sep 12, 2011

How can i get the RAM Memory on system in terminal when i have 3 GB with an output like this:

3072
or
3145728

[code]....

View 8 Replies View Related

General :: Short Cut To Copy From Terminal Output?

Dec 10, 2010

if we type a command such as "locate somefilename" in the terminal we will get all the paths to the file name as output. If i want to copy only one line from that output how do i do that without using mouse?i need terminal short cut to copy one line

View 8 Replies View Related

Software :: Echo Or Search Through Terminal Output?

Jun 16, 2011

if i will sound stupid but i can't find a command that would echo output of some command. Let's say that i want to echo the third line of ls -a. I know of the tail command but this command starts from behind.

View 4 Replies View Related

Programming :: Not Getting Right Output To Correct Terminal Window

Jun 17, 2010

I have a server client prog in which server is my 'agent' and client is 'manager'. Following is the code for both agent and manager. I want my agent to send what manager is requesting. But it is not working the way I want. The parameters which manager is requesting, agent has to send to manager but in this program result for those parameters is shown on agent's own terminal window. Where as I want them on manager's window. Secondly, there result is not correct, means it is giving ' 0 K ram and 0 no of process....

Code:
//code for MANAGER
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h> .....

View 2 Replies View Related

Red Hat :: Directing Cron Output To Terminal Screen?

Sep 7, 2010

I am trying to display a text using crontab. My settings :

*/2 * * * * /bin/echo "hello"

This setting sends a mail to the user, instead of displaying on the screen. Now tried changing the setting to:

*/2 * * * * /bin/echo "hello" > /dev/tty1

Now I can see the text on the screen, but this setting comes with a catch. What would happen if the user changes the terminal. for instance if he gets into tty2, he wont have write access on tty1. So the user gets a mail saying "permission denied". Is there any way that I can force the user to use a particular terminal or can a cron job be set in a way such that the user would get the text irrespective of the terminal he logs in.

View 1 Replies View Related

Slackware :: Attach The Terminal Output Of The Compile?

Apr 11, 2010

running current with 2.6.33.1-smp kernel i cant seem to get the slib slackbuild to run. it just quits without ever building the tgz. i hope i can attach the terminal output of the compile.

View 8 Replies View Related

Ubuntu Servers :: ERROR Installation Failed, Please Check The Terminal Output

Apr 24, 2010

I'm installing and configuring my first server using RackSpace CloudServers running Ubuntu Karmic Koala (9.10) and I'm now installing iRedMail. The installation runs successfully until I recieve this error:

Code:
The following packages have unmet dependencies: mysql-server-5.0: Depends: mysql-server-core-5.0 (>= 5.1.30really5.0.83-0ubuntu3) but it is not going to be installed

E: Broken packages < ERROR > Installation failed, please check the terminal output. I understand this is telling me there is some software that iRedMail (or something iRedMail is dependant upon) that needs installed. Is this correct? And if so, what is i needing installed and how do I do that (aptitude install example-package?)?

View 4 Replies View Related

Ubuntu Multimedia :: Creating ISO File In Terminal - Input / Output Error

Feb 15, 2011

I'm trying to create an iso file in a terminal with the following command:
$cat /dev/sr0 > nameofdisk.iso
I get the following error
cat: /dev/sr0: Input/output error
I already checked and my optical drive is indeed /dev/sr0. I've hunted google a few hours trying to figure it out. Does anyone know why I'd be getting this error?

View 4 Replies View Related

Fedora X86/64bit :: Installing RPM - Yum Output Via Terminal Error

Mar 16, 2011

I'm new to Fedora and the Red Hat way of doing things, having been a Ubuntu/Mint user for the last 5-6 years. I've been using Fedora for my daily computer now for the last 3-4 months - a change that has definitely been for the better! However, earlier this morning I went to install a .rpm, and yum output via terminal the following error:

Code:
[leeky@darkstar ~]$ sudo yum install opera
[sudo] password for leeky:
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Adding en_US to language list
Loading mirror speeds from cached hostfile
* fedora: mirror.netrino.co.uk
* rpmfusion-free: mirror01.th.ifl.net
* rpmfusion-free-updates: mirror01.th.ifl.net
* rpmfusion-nonfree: mirror01.th.ifl.net
* rpmfusion-nonfree-updates: mirror01.th.ifl.net
* updates: mirror.netrino.co.uk
Error: database disk image is malformed
[leeky@darkstar ~]$

This is the first time I have received this error. I've now tried the following methods of resolving this problem with no luck:

1. Code:
yum clean all
2. Code:
yum clean metadata
yum clean dbcache
yum makecache
3. Physically removing the /var/libs/yum folder, and creating a new "yum" folder, and then step two above to rebuild it. Either way the problem then still returns in terminal.

View 2 Replies View Related

General :: Bash - Get Colored Output When Using Tab Completion In A Terminal?

Feb 27, 2011

Is there a way to get colored output when using tab completion in a terminal? My colors are fine everywhere else so I know that I've enabled a color terminal successfully. Using bash in Ubuntu (10.10).

View 1 Replies View Related

General :: Capturing Remote Output Locally In Mac Terminal?

Jun 2, 2011

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and an sftp for each command output seemed a little.. Next, I tried to Applescript Terminal, but it only gives access to the currently visible text in a tab (i.e. if half the output has already scrolled out of sight, it doesn't get returned - useless).

Last, I tried piping ssh to tee (e.g. ssh user@host | tee output.txt). This almost worked. I have the output in a local file, but there are a lot of unwanted characters mixed in. For example, every time I hit backspace, there's a ^H in the file. There's also text like "[0m[K" which is harder to get rid of.

View 2 Replies View Related







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