Hi all,
By running a (command) script I'm getting the following
error: .: /usr/bin/test: cannot execute binary file
This is the command:
$ . test
The script (test) is very simple
sqlplus user/password @1.sql
sqlplus user/password @2.sql
Can enyone tell me what the problem is. (5 Replies)
Yesterday, I and all my users couldn't connect to my server using ssh, telnet or ftp even though they were running (keep getting "connection timed out" error message).
This morning, my partner logon from the main console, restarted sshd and xinetd (I belive he didnt restarted the server), now I... (0 Replies)
i have a box here that can only be accessed with telnet. now, i was wondering if anyone know of a way of which i can run a command on that box remotely. (2 Replies)
...so I read "The Pragmatic Programmer" and they stressed the value of learning shell scripting!
I'm in a UNIX environment but have a Windows XP workstation.
I'm using Telnet to issue UNIX commands. I've done plenty of chmod's, command line ftp and stuff, but written no scripts to this point.... (1 Reply)
Hi Guys, I have a question, is there a way or an option where i can run a script continuesly after i close the telnet window?? because im running a cobol program which runs several hours and im thinking that ill run it after office hours so the run will be finish the next day.. the thing is i need... (2 Replies)
Hi all,
I have created a script file .sh and had some allias commands, local variable, some grep features, and listing files/directories, and it worked correctly and I got the outputs I am looking for after I run the script . However, some of the grep commands and some other functions did not... (2 Replies)
I am using a shell script to telnet into a remote unix server and execute certain commands. But if any command being executed remotely, throws an error, the script just hangs. And the telnet session does not get closed.
I want to be able to close the session and complete the script execution in... (1 Reply)
When running MC in xterm or gnome-terminal, it doesn't seem to allow the use of Ctrl-enter and Ctr-shift-enter to copy marked files to the command line.
Does anyone know of another way to cause this to happen or a way to enable it under xterm/gnome-term?
With thanks,
Narnie (0 Replies)
Hi guys i'm trying to run an xterm with a particular command in it. I have looked at the man page of xterm and it says to do this we use following command: -e program
I want it to open the man page of the bash file.
I tried xterm -e.
It doesnt seem to work. I must be doing it... (1 Reply)
I want to launch an xterm telnet window:
xterm -e telnet xxx.xxx.xx.xxx
Which I can do but needs to also launch commands as well.
Please use CODE tags as required by forum rules! (2 Replies)
Discussion started by: shopgirl08
2 Replies
LEARN ABOUT DEBIAN
dtk_destroy_font
DTK_LOAD_FONT(3) Draw Toolkit manual DTK_LOAD_FONT(3)NAME
dtk_load_font - Load an font
SYNOPSIS
#include <drawtk.h>
dtk_hfont dtk_load_font(const char *fontname);
void dtk_destroy_font(dtk_hfont font);
DESCRIPTION
dtk_load_font() loads the font specified by fontname argument. This should be the path of a file whose file format can be any of the file
format supported by the freetype library (TrueType and Type 1 among many others) or a font description pattern understood by fontconfig
(like "Times new roman:bold"). dtk_load_font() will first interpret fontname as a font filename and then, if this fail interpret as a font
pattern and load the closest font available on the system.
Upon creation, the font data is then tracked by an internal resource manager so that the next call using the same fontname argument will
return the same font handle, thus sparing the resources of the system.
There is no need for a valid window to create successfully a font, i.e. font loading is completely decoupled from the creation of others
resources and can even be created in one thread to be used in another one.
dtk_destroy_font() frees the resource referenced by font. If the font is used several times, i.e. several call to dtk_load_font() with the
same file path, it decreases the number of uses by one.
Calling dtk_destroy_texture() on each created font is currently not mandatory since all font remaining fonts are destroyed when the last
window is closed. However, if no window can be closed (for example, no window has been created), dtk_destroy_font() should be called on
each created font to avoid any memory leak.
RETURN VALUE
In case of success, the dtk_load_font() returns the handle to the loaded font. In case of failure, NULL is returned.
dtk_destroy_texture() does not return any value.
THREAD SAFETY
dtk_load_font() and dtk_destroy_texture() are thread-safe.
SEE ALSO dtk_create_string(3)fc-list(1)FcPatternFormat(3)EPFL 2010 DTK_LOAD_FONT(3)