10-29-2008
10 More Discussions You Might Find Interesting
1. Programming
Hello,
I'm trying to write a method which will return the extension of a file given the file's name, e.g. test.txt should return txt. I'm using C so am limited to char pointers and arrays. Here is the code as I have it:
char* getext(char *file)
{
char *extension;
int i, j;... (5 Replies)
Discussion started by: pallak7
5 Replies
2. Shell Programming and Scripting
Hi, Guz!
I'm working on a scripts compiler which needs a function to generate random strings. I think REGX may be a good solution to restrict the string format. Before DIYing I'd like asking for any existing libs or codes.
Any help will be appreciated! (7 Replies)
Discussion started by: wqqafnd
7 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am trying to extract substring from a variable by using the pattern as var3=${var2:3:3}
var2 is a variable already declared and having the value. From var2 i need to extract 3 characters from 3rd position.
When ever i give the expression var3=${var2:3:3} on shell prompt, the... (3 Replies)
Discussion started by: Raamc
3 Replies
4. Solaris
hi sirs
can u tell the difference between /var/log/syslogs and /var/adm/messages
in my working place i am having two servers.
in one servers messages file is empty and syslog file is going on increasing..
and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
5. Solaris
Hi,
Is the contents in /var/log/syslog and /var/adm/messages are same??
Regards (3 Replies)
Discussion started by: vks47
3 Replies
6. Programming
Compiling xpp (The X Printing Panel) on SL6 (RHEL6 essentially):
xpp.cxx: In constructor ‘printFiles::printFiles(int, char**, int&)’:
xpp.cxx:200: error: invalid conversion from ‘const char*’ to ‘char*’
The same error with all c++ constructors - gcc 4.4.4.
If anyone can throw any light on... (8 Replies)
Discussion started by: GSO
8 Replies
7. Red Hat
Hello Everyone,
I am setting up monitoring system for linux server, I need to add few some common error message in monitoring file which can search those strings in /var/log/messages file on the client.
can someone suggest few error messages.
Thanks, (2 Replies)
Discussion started by: bobby320
2 Replies
8. Shell Programming and Scripting
Hi guys,
I'm running into an issue where a query works on rapid sql 7x but not on isql.
select substring(1,len(column-5))
from table_a
where column = "xyz 1111"
--The output on raipd sql is xyz
--The same query on isql returns xyz 1111
any help is appreciated
Cheers
Irishboy (2 Replies)
Discussion started by: Irishboy24
2 Replies
9. Shell Programming and Scripting
i try to find way to make string concatenation in csh ( sorry this is what i have )
so i found out i can't do :
set string_buff = ""
foreach line("`cat $source_dir/$f`")
$string_buff = string_buff $line
end
how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies
10. UNIX for Advanced & Expert Users
Hi all,
i have the following line in a record file :
retenu=non
demande=non
script=#vtbackup /path=/save/backup/demande
position=140+70
and i want to use Perl regex to have the following output
key : "retenu" value : "non"
key : "demande" value "non"
key : "script" value :... (2 Replies)
Discussion started by: Fundix
2 Replies
LEARN ABOUT FREEBSD
preload
PRELOAD(8) System Administration Utilities PRELOAD(8)
NAME
preload - Adaptive readahead daemon
SYNOPSIS
preload [OPTION]...
DESCRIPTION
preload is an adaptive readahead daemon that prefetches files mapped by applications from the disk to reduce application startup time.
-h, --help
Display command line parameters and their default values, and exit.
-v, --version
Display version information and exit.
-c, --conffile
Set configuration file. Empty string means no conf file. (default is /etc/preload.conf)
-s, --statefile
Set state file to load/save. Empty string means no state. (default is /var/lib/preload/preload.state)
-l, --logfile
Set log file. Empty string means to log to stderr. (default is /var/log/preload.log)
-f, --foreground
Run in foreground, do not daemonize.
-n, --nice
Nice level. (default is 15)
-V, --verbose
Set the verbosity level. Levels 0 to 10 are recognized. (default is 4)
-d, --debug
Debug mode: --logfile '' --foreground --verbose 9
SIGNALS
On receipt of a SIGHUP, the daemon will close and reopen its log file, and reread the configuratoin file.
On receipt of a SIGUSR1, the daemon dumps the currently loaded configuration into the log file.
On receipt of a SIGUSR2, the daemon saves its state into the state file.
AUTHOR
Written by Behdad Esfahbod <behdad@gnu.org>
REPORTING BUGS
Report bugs to <http://preload.sf.net/bug>
COPYRIGHT
Copyright (C) 2005,2006,2007,2008 Behdad Esfahbod.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
preload 0.6.4 May 2012 PRELOAD(8)