08-02-2011
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in
this forum under
special homework rules.
Please review the
rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.
If you did post homework in the main forums, please review the
guidelines for posting homework and repost.
Thank You.
The UNIX and Linux Forums.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've just begun using/studying Unix and I've run into a problem. I'm attempting to write a script that will replace a string within a textfile with another string, backing up the file before editing it.
This is what I have so far, but I'm getting a "command not found" error.
example input: ... (2 Replies)
Discussion started by: Vamirr
2 Replies
2. UNIX for Dummies Questions & Answers
Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies
3. Solaris
I was told on a website that unix can help you make one. I was just wondering how and can you help me with a web page of my own. (1 Reply)
Discussion started by: Shintouku
1 Replies
4. UNIX for Dummies Questions & Answers
This is my first attempt in installing a netbsd ever. I'm trying to get myself familiar with some commands and how things work in unix and so far i never knew its this fun. Anyway, unix is our elective here in school and school is gonna start 2 weeks. I'm just trying to get a headstart on this :D... (2 Replies)
Discussion started by: 3rr0r_3rr0r
2 Replies
5. UNIX for Dummies Questions & Answers
My applogies. (1 Reply)
Discussion started by: buttons
1 Replies
6. Windows & DOS: Issues & Discussions
Hi i have recently downloaded the cygwin emulator on my windows xp machine and i installed it onto my laptop and all was fine. The thing is i have never known how to use it really. I am wanting to use linux on windows since i have some programs that work on linux only.
I have a program called... (1 Reply)
Discussion started by: Sharkadder
1 Replies
7. Programming
Hi to everyone , I am learning C language and I have problem with one example from book
#include <stdio.h>
int main()
{
char me;
printf(“What is your name?”);
scanf(“%s”,&me);
printf(“Welcome, %s!\n”,me);
return(0);
}
when I want to... (5 Replies)
Discussion started by: solaris_user
5 Replies
8. Shell Programming and Scripting
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Discussion started by: torchij
16 Replies
9. Red Hat
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies
10. Shell Programming and Scripting
Hii all.
I have a problem with my shell script.
This is my code
while
do
space.exe inputs/gr$count >> outputs/t$count
count=$
done
I ussually work in cygwin. When i tried in linux(ubuntu, kali linux) i found error said Syntax error : end of file unexpected (expecting "do")... (6 Replies)
Discussion started by: weslyarfan
6 Replies
LEARN ABOUT DEBIAN
savetextmode
savetextmode(1) Svgalib User Manual savetextmode(1)
NAME
savetextmode, textmode - save or restore the complete SVGA status for textmode.
SYNOPSIS
savetextmode
textmode
DESCRIPTION
These are simple scripts to save the SVGA register state when in textmode to the files /etc/vga/fontdata and /etc/vga/textregs
($HOME/.vga/fontdata and $HOME/.vga/textregs if directory /etc/vga is not writeable) or to restore it from these files.
The actual utilities used are restorefont(1), restoretextmode(1), and restorepalette(1).
The purpose of these scripts program is usually to recover from a crashed console due to an svgalib, Xfree or other program bug.
You do this by being a smart guy and running savetextmode right after booting of your machine, prior to any problems. Then, in case the
SVGA state is hosed and you sit in front of a blank or useless console, change VC (maybe login) to get to a shell. Or exist the currently
running program with <Ctrl>-C, <Ctrl>-<Alt>-<Backspace>, or whatever applies. Once you got a shell, run textmode and it will hopefully ren-
der your console useable again.
To make it clear: You do all this while not seeing anything on your console screen, you enter this information blindly or after logging in
from a network. Also, if the keyboard is left in raw mode, nothing can really help you as you cannot enter anything which a shell will
understand.
FILES
/etc/vga/fontdata or $HOME/.vga/fontdata
/etc/vga/textregs or $HOME/.vga/textregs
SEE ALSO
svgalib(7), vgagl(7), libvga.config(5), dumpreg(1), convfont(1), fix132x43(1), restorefont(1), restoretextmode(1), restorepalette(1),
runx(1), setmclk(1),
AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced utility as well as of the
original documentation is unknown.
It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections
to this first version of the svgalib manual.
Svgalib (>= 1.2.11) 2 Aug 1997 savetextmode(1)