9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
echo $(date +%s) | awk '{ print strftime("%c", $2"-"$3"-"$NF"/"$4); }'
The above command only seems to work on newer versions of awk or systems with gawk installed.
how can i translate the epoch time into a human readable format using a portable method?
also, date -d@$epochtime does not... (3 Replies)
Discussion started by: SkySmart
3 Replies
2. UNIX for Beginners Questions & Answers
Hi,so today is my first day with linux.
I have some scripts from a friend and now im trying to run them but it doesnt work. So what i tried is:
-Moved the scripts to a specific directoy (into my document folder)
-then i opened the standard terminal in ubuntu (GNOME-Terminal)
-i typed in "Ls",... (3 Replies)
Discussion started by: easy123
3 Replies
3. Ubuntu
Is it possible to start Ubuntu (or any other modern UNIX OS) or get it to any usable state without the init software.
By this I mean replacing init with bash and manually initializing all the components.
So far i've managed to edit grub at start and get the bash shell but I don't know where... (3 Replies)
Discussion started by: Kadikis
3 Replies
4. Shell Programming and Scripting
awk/shell:
UWARNING=90
UCRITICAL=97
PXNAME=$(echo $line | awk -F, '{print $1}')
SVNAME=$(echo $line | awk -F, '{print $2}')
FRUPERCENT=$(echo $line | awk -F, '{print ($5 / $7) * 100}')
... (6 Replies)
Discussion started by: SkySmart
6 Replies
5. Shell Programming and Scripting
Hello Im new here,
I just got my first VPS and I really need help converting this .bat to shell script so i can run my program.
@echo off
@title DiamondMS v117
set CLASSPATH=.;dist\*
java -client -Dnet.sf.odinms.wzpath=wz server.Start
pause
I have no idea what im doing to convert this... (12 Replies)
Discussion started by: valleric
12 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I am new to Linux kernel/user space programming having been an assembly programmer in my previous life. I am now using 2.6.x kernel on an embedded CPU that has a few dedicated hardware blocks (including more CPU running just C-code, i.e., no operating system).
There is a single DRAM... (1 Reply)
Discussion started by: agaurav
1 Replies
7. UNIX for Dummies Questions & Answers
I want to strip off '\032' character from a file using:
tr -d '\032' < oldfile > newfile
this outputs the contents of oldfile to newfile, but I wanna do that in the same file i.e. remove the \032 character from the old file. I tried:
tr -d '\032' < oldfile > oldfile
But the... (3 Replies)
Discussion started by: gagan8877
3 Replies
8. Shell Programming and Scripting
Hi,
i have a given file named hugo.dat. In this file there are several lines that contain characters like } and ~
Now, i need a script that replaces the character } to ü
and character ~ to ß
Can anyone help for a working ksh script?
Kind Regards
FranzB (3 Replies)
Discussion started by: FranzB
3 Replies
9. UNIX for Advanced & Expert Users
Greetings,
I have a oracle database server and i keep getting grid control message
Metric=Disk Device Busy (%)
Metric Value=98.66
Disk Device=ssd430
Severity=Critical
Message=Disk Device ssd430 is 98.66% busy.
so I am trying to correlate the ssd430 to the filesystem. I understand this... (3 Replies)
Discussion started by: p4cldba
3 Replies
FTL_CS(4) Kernel Interfaces Manual FTL_CS(4)
NAME
ftl_cs - Flash Translation Layer driver for PCMCIA memory cards
SYNOPSIS
insmod ftl_cs.o [pc_debug=n] [major_dev=n]
DESCRIPTION
Flash memory devices typically need to be erased before they are written, and most flash devices can only be erased on large block bound-
aries like 64K or 128K. The Flash Translation Layer driver, ftl_cs, implements a sort of virtual sector-addressable block device that
hides the details of erase operations. Using the FTL driver, a flash memory card can be treated as an ordinary block device.
The ftl_cs driver allocates a major device number when it is loaded. Minor device numbers have a bitwise layout of 'dddrrppp'. 'ddd' is
the device number, with one card counting as one device. 'rr' is the common-memory region number, generally 0. And 'ppp' selects a logi-
cal partition within the FTL region.
The default configuration script for FTL devices will create a block device with the name of the form '/dev/ftl{d}c{r}', where '{d}' is the
device number and '{r}' is the region number, that spans the entire FTL region. It also creates devices '/dev/ftl{d}c{r}p[1-4]' pointing
to partitions 1 through 4 within this FTL region.
An FTL region must be formatted before use. The formatting utility, ftl_format, needs to write to the corresponding raw memory device
rather than the FTL device interface.
PARAMETERS
pc_debug=n
Selects the PCMCIA debugging level. This parameter is only available if the module is compiled with debugging enabled. A non-zero
value enables debugging.
major_dev=n
Selects the major device number to allocate for FTL devices. The default is to pick any available major number.
AUTHOR
David Hinds - dahinds@users.sourceforge.net
SEE ALSO
ftl_format(8), cardmgr(8), memory_cs(4), pcmcia(5).
pcmcia-cs 2000/06/12 21:24:47 FTL_CS(4)