Applications :: Saving Postscript Output - How To "print To File"
Mar 21, 2010
Been using gv and vi to build a postscript file. Now I would like to save the output of the program to a disk file. My problem is I can't figure out how to "print to a file".
I am using system() command to save command output in txt file and i am storing in one character variable.
For example Code: system("ls>output.txt"); but what should i do when i have to save another one command output in the same txt file continuously, for example
Code:
The output of these 2 commands should come in one txt file continously it should get over write.
I am creating a script to sync my important documents between two system. I want my script to generate a log file for the last action. can you suggest me a way to achieve this.Question: If I execute the rsync command with -v flag, it will print a lot of messages on the console. Is there any way. So, I can redirect these logs to a file?
file1: have DNA sequences and each sequence will begin with > symbolfile2: have protein sequence and each sequence will start with > symbolfile3: BLAST result of file2 and each result will start with query= .my problem is i have to make a report file by combining these three in such way that first sequence from file1,first sequence from 2nd file and first result from file3 should be printed in a report file
Its my first post in here so please be patient I am trying to use regex in perl script to detect allowed words from the file and then print output to the screen.
As an example : I have text file with orders and returns :
My question: is it possible to make sure that i am ony outputing to the screen orders based on few conditions like Item,order form e.g. online.And is it possible to have multiple matches (Item2 only diplay if ordered online etc)
Anyone know of any programs to convert a postscript file to a gerber file? LinkCAD can do it, but, it is very expensive and I can't get the demo to run.
I am wondering if there is a basic tool out there that will work with graphics card powered by FOSS drivers that allows to adjust resolution (and configure secondary monitors) and then save that configuration so it can automatically be restored next time the system starts up.
Just installed drivers for Lexmark pro200 - S500 series. However although it is recognised by the system and has a tick by its name, And tells me it is connected via usb file goes to print que but will not print. Also tells me it is Printing - localhost! is this correct?.
My setup: openSUSE 11.4. Acer Extensa 5635ZG Epson Stylus Photo PX710W, connected with WiFi
I have just discovered that I can't print text from libreoffice writer/calc if the layout is set to landscape. The letters seems to have been stretched and printed over each other. If I print the same document in kword/kspread everything is printed as it should be. I have generated a pdf of the document and printed from okular/acroread, even then it's not printed correctly. Although it looks ok in okular/acroread. What else that can be seen is that when it's wrongly printed the printout is printed in the opposite direction compared to when it's printed correctly. I.e. the tail comes first on the paper so to say. Where should I begin to search for faults?
Let's say I am pinging a host, and want to output to a file each reply and its timestamp of when this started.
I know that it can be done with a loop and a shell script. Something like this
DO
echo "$(date)" >> results.txt ###includes the time and outputs results to txt### ping -c 4 HOST >> results.txt ###a total of 4 pings at a rate of 1 per second###
REPEAT UNTIL USER PRESSES CTRL-C
Now, my first issue is that I need to be able to see results real-time as well.
Is there a way one can print to BOTH a screen and output? If one uses the ">>" command, it is essentially sending everything to the file. Running another ping command in parallel is not an option.
When I save the output of "ls" command to a "txt" or "rtf" file, the color information is lost. Is there any way to retain the color code of different files/directories obtained by the command "ls --color" while saving?
We have a lpr server for printing (not CUPS for compatibility with complicated domain/systems). We configured our linux systems -- RHEL4, RHEL5, and Ubuntu 10.04 -- so that lpr is one of the gtk print possiblities by adding 'gtk-print-backends = "lpr,pdf,file"' to gtkrc. This works great for several gtk-enabled applications like Acrobat Reader (acroread).
However, Firefox 3+ (tested 3.6.3 & 3.0.19) doesn't actually queue any lpr jobs until after quitting the application.
I do 'vim c1 c2' and I begin copying parts of c2 to c1 (yank, put). Now, each time I go back to c2, I must save c1 first. But it happens that I'm not sure I want to save it. Is there a way to go back and forth between c1 and c2, making changes to one of them, without having to write to disk before switching? Notice the changes must be kept.
This time I install fedora I get a sound card. It says Audio oupt or something well I can hear my speakers making sounds like blerereblumm like someone is rubbing a cloth over them yt no sound though. My output volume for all applications is maxed. So, what can I do to fix this?
is there a driver or application / media player that will allow me to use camstream,kopete cheese on the same camera at the same time.and let flash web sites use the cam as well .
I have a debian system installed on my pc . I have just saved a text file on my desktop . Please let me know how can i print the file through comand prompt ? I need to learn the printing the file thru comamnd line .
I want to save notes against a file on linux... i want to save meta data about a file..because the file names are restricted in max length...So how to save notes or comments about a file on linux so that it gets saved along with the file itself...I used the notes tab in the file properties dialogbox.. but that way the notes stick to the file only on that OS only.. if i open that file in another linux os.. those comments/notes are gone...Way to embedd these notes into the file so that i dont lose them ever..At lease a solution that makes this possible on switching linux distros. if its not portable enough that these notes stick b/w windows and linux its ok for me.. but atleast if i format my linux os.. atleast i shouldnt lose those important notes..and be able to access on newer linux..
And i also have no idea if this notes tab was implemented to be linked with the OS only.. i dont see much use of it.. and a normal user also has noway to know this.. i also came to know on superuser chat from a buddy.. @Sathya ..this thing is more useless especially if u use ubuntu which has 6 months timeline..and crazy people like me who are always eager to upgrade their os as soon a new one is available..and any way i can search these notes from the terminal?
I'm using fedora 11. I want to do some operation like after saving a file (moving ,copying,..) the system need to ask that "DO you want to encrypt?" . If yes I am able to run the crypt module (which I already implemented..). Is it possible to invoke a encrypt module which I implemented in c language.
Here we go, error 4,384,239,283 in Ubuntu I was trying to load a PDF and print it and only said "print to file" So I go to System >Administration>Printing, and it says "Starting Printing." at the bottom, and then goes away... Sigh, anyone knows whats going on?
I have added the user "user" to www-data group. Now I connect using ssh as user "user" to my server with nautilus. When I copy files using nautilus file get the group permission 'www-data' as they should. But if I edit a file using Gedit and save it, the file's group get changed to "user" group ?