Debian :: In Xnee Session File What Is Each Number

Sep 21, 2015

cnee makes xnee session file .xns. In that file, each line has 9 numbers. What does each number mean?

I have xnee 3.19. I looked in this pdf file, but could not find the answer.

XWindow System Protocol, XConsortium Standard, XVersion 11, Release 6.8

View 1 Replies


ADVERTISEMENT

Debian :: Use Screen To Execute A File With A Certain Session Name Instead Of Just Numbers?

Feb 11, 2011

I'd like to use screen to execute a file with a certain session name instead of just numbers... or at least have a more permanent name, I'd like to be able to use it all in one command though. So I can put it into a script.Also: is there a way I can remove or change what comes up at the debian login screen so instead of debain 5.0 I can make it say something else? Also when I login the message that comes up is a little annoying, is there a way I could remove or change that too?

View 7 Replies View Related

Ubuntu :: Unsupported Number Of Arguments / Falling Back To Default Session

Aug 4, 2011

I just installed my Lubuntu, but I upgrade to lubuntu 11.04 (natty), after that I decided to try unity, so I installed ubuntu-desktop and unity, but when I try to start session on Ubuntu or unity it told me the title error, then I got the error.It open me a session without any menues and just a clean desktop.On another topic, after I upgrade, Lubuntu ask the password each time I turn on my computer, But when I try to change the settings and click on the button that say: enter session without asking password, that button appear locked.How do I unlock it?

View 6 Replies View Related

Debian :: Save Session File From Xfce Menu When Shutdown

Nov 14, 2015

I'v installed wmctrl to have a terminal on desktop and I'v configure it with a script I'v found online.I'v add the script to startup menu interface from xfce (I don't know the us name cause I'v it version on system language), when I shutdown I'v save the session, and on the next log in seems that it is run twice, so if I disable the save session button when I log of but in that case it run in the previous status (dir/position)and I want that it run from startup menu from script file....so when I save the session where it save the status??...how can I skip that it run twice with the script running at startup???

#! /bin/bash

xfce4-terminal --hide-menubar --hide-borders --hide-toolbars --title=descon && wmctrl -r descon -e 0,90,10,500,500 && wmctrl -r descon -b add,sticky,below && wmctrl -r descon -b add,skip_pager,skip_taskbarFirst xfce4-terminal

View 0 Replies View Related

Ubuntu :: Xnee Not Syncronized With Java Apps?

Jul 21, 2010

As xnee official packages did not work for me, I downloaded, compiled and installed the latest xnee version (3.06). It work almost well, but if I try to automate the execution of a Java web application, xnee lost the synchronization and give me this error:

Code:
Can't synchronize anymore .... have to leave! 11 10
Error number: 5
[code]...

View 1 Replies View Related

Fedora :: XDMCP Fatel Error "Session Declined Maximum Number Of Open Sessions"

Mar 20, 2010

I am using Fedora 12 and i have enable XDMCP i have boot client with dhcp all is going well but when remote user logout than remote client display XDMCP: fatal error: Session declined Maximum number of open sessions. and after that i have reboot Fedora 12 server than it will work but after logout it will again create same problem.

View 1 Replies View Related

Ubuntu :: Shell, Auto Append Number To File And Read From External File?

Oct 31, 2010

Code:
cat ${SOURCE}/{start,universal,index,end}.txt > ${SERVER}/index.html
cat ${SOURCE}/{start,universal,02042010,end}.txt > ${SERVER}/02042010.html

[code]....

View 3 Replies View Related

General :: Script To Insert Number Of Lines In A File To The Start Of The File?

Sep 17, 2009

I'm looking for a way to insert the number of lines in a file to the start of the aformentioned file. This should be simple but as I am not used to scripts in Linux, I am finding it tough going. I can find the number of lines in a file easily enough via

filesize=$(awk 'END {print NR}' $1)

but as for inserting this into the first line, i'm failing to do so. I've tried some of the other approaches on these forums but none so far have been able to do so.

I've tried:

sed '1i$filesize' $1

but sed i requires a string, not a variable so no go I've also tried:

mv "$1" "${1}.bak" 2>/dev/null || touch "${1}.bak"
cat $filesize "${1}.bak" >"$1"

but again with no luck as cat seems to need an input stream Just to recap, i want to insert a line at the start of a given file that holds the number of lines the original file has.

ie the file:

a
b
c
d
e

should become:

5
a
b
c

[code].....

View 3 Replies View Related

General :: Max Number From The Name Of A File?

Mar 24, 2010

I need to get the max number from the name of a file

Formant of the file name:
[a-zA-Z]*_[0-9][0-9]_[A-Z][A-Z].log
Delimiter as underscore '_'

[code]....

known part in the above file name will be GA.log A give directory may or may not contain files in the above format or may contain file other then the above format if so then ignore it.

Eg:-

1) Directory=/tmp/log having below listed files

ant_01_EG.log ant_02_GA.log ant_04_EG.log cvs_01_EG.log cvs_02_GA.log cvs_04_EG.log master_01_GA.log master_03_EG.log master_04_GA.log

[code]....

output=> 06

2) Directory=/tmp/log no files

cmd=> ls *[0-9][0-9]_GA.log 2> /dev/null | awk -F_ '{ print $2}' | sort -nr | head -n1 | awk 'BEGIN { if ($1 >0 ) x=0; else x=1 } END {printf "%02.0f
", $1+1}'

output=> 01

if there are no files the output should be 01 and if file(s) found the output should be next highest number+1, In the above example it is 06 My cmd is bit lenghty. reduce my cmd and it should be in one line.

View 6 Replies View Related

General :: Searching For Number Within A File?

Nov 9, 2010

I'm currently trying to design a small, simple enough shell program for area codes. I have a list of area codes in a database, and I am trying to write a program that will have a user input an area code, and then have the program print out information that immediately follows that area code in my database. I assume I need to use a find or locate command, but I'm not sure if I should be searching for a string or the number itself. The number could possibly occur at some other point in the file, though the way I have the file set up it only occurs once at the newline.

what function I should use and how I should go about it? As is I only have the absolute bare-bones beginning of having an echo for the prompt to input an area-code, and the read once it's input. Without the find I'm not sure how much farther I can get. Also, would it make it easier if I added some character such as a ! to the end of the number at the newline to make it easier to search for? With a macro that would be easy enough to do.

View 1 Replies View Related

General :: Cat:/tmp/ts/session Not Such File Or Directory

Sep 20, 2010

While thinstation is booting from localdrive then the shows repeatedly error displays after line welcome to thinstation cat: /tmp/ts/session not such file or directory even that i have kept file in loclal derive thinstation.profile/thinstation.conf.user

View 1 Replies View Related

Debian :: Number Of Debian Users Worldwide?

Sep 15, 2010

Is there any guestimate of the total number of debian users or debian computers world wide?What about total GNU/Linux users (any distro)?

View 2 Replies View Related

Ubuntu :: Recover File - Don't Know The Inode Number Of It?

Jan 3, 2010

How can i recover a file if i don't know the inode number of it? Is there a way of scanning the hard drive for inodes that has no reference?

View 1 Replies View Related

General :: Find Inode Of A Particular File Using Its Number?

Nov 16, 2010

Can we find the inode of a particular file using its inode number?

The reason is i want to know how many blocks are occupied by specific file.

if we consider block size of 1K.
if the file size is of 100 bytes. In such a case, when the file is
stored on disk, the file will occupy 100 bytes or 1K (since we have
choosen block size to be 1K) ?

View 6 Replies View Related

General :: Comparing A File Size To A Given Number?

Jul 26, 2011

I'm trying to write a script that takes two arguments, the first argument is a number, and the second argument is a filename. The shell script should indicate if the file's size is BIGGER or SMALLER the number provided. this is what i have sofar, am i on the write track, i'm hoping its just a problem with my if command

if [ $1 -h $2 ]
then
echo "$1 is bigger than $2"
else

[code]....

View 2 Replies View Related

General :: How To Grep Negative Number In File?

Mar 4, 2010

I wanted to grep the line in a file starts with -1.000000e+00.

Tried grep "-1.000000e+00" *, got error "grep: invalid option --".
Neither of the following works:
grep "-1.000000e00" *
grep "1.000000e00" *

How do I grep a negative number with scientific notation?

View 3 Replies View Related

General :: Isolate A Number From A Text File Using Sed?

Mar 27, 2010

I'm trying to isolate a number from a text file using sed. The text file looks like this:

-GARBAGE-GARBAGE-GARBAGE- Number of frames: 183933 frames Codec -GARBAGE-GARBAGE-GARBAGE-

I tried the following:

Code:
sed "s/^.*Number of frames: //g; s/ frames Codec.*$//g" "info.txt" > "frames.txt"
Strangely, it only seems to be stripping off the end, but not the beginning, like so:
-GARBAGE-GARBAGE-GARBAGE- Number of frames: 183933

I'm obviously not using the command correctly, so what am I doing wrong?

View 8 Replies View Related

General :: Show The Number Of File On Folder?

Oct 21, 2010

My folder have some files and I want to show the number of files on folder at "Total file on folder: " Ex: Monday folder have six files and it will show "Total file on folder : 6" when I run a script. This is my code :

#!/bin/sh
if [ -d /home/kenzo/Monday/ ] && {
echo "Monday"
ls -l /home/kenzo/Monday/

[code].....

View 2 Replies View Related

General :: Print The Number Of Characters In The File?

Apr 6, 2010

# echo "foobar" > /tmp/word
# cat /tmp/word | wc -m
7

I want to print the number of characters in the file. Why does it output 7? Am I missing something obvious?

manpage:
-m, --chars
print the character counts

View 3 Replies View Related

Software :: Know Name Of File Which Owns A Block Number On FS?

Apr 24, 2010

I need to monitor file reads&writes by all the apps. I have found a kernel feature /proc/sys/vm/block_dump. But it only gives me block numbers while i would like to know file names. How can i convert these block numbers to file names (if the blocks belong to a file, of course)?

View 3 Replies View Related

Programming :: Read The File Add Number And Get The Average?

Apr 29, 2010

I have a file which has several entries with

# comment 1
1245
# comment 2
5667
# comment 3
456456

how can I read the file, sum the numbers ( "avoid" the #lines) and then get the average of the numbers?

I do awk '{s+=$0} END {print s}' /tmp/file.txt. and this give me the sum correctly, but how can I get also the average ?

View 4 Replies View Related

General :: How To Get Color While Editing File Through SSH Session

Nov 25, 2010

I use cygwin on Windows7 to open a ssh session to my linux box. When I edit a file with vim, I don't have color, only kind of gray bold. I have colors when I do a ls into my ssh session. I have also colors when I edit files from a ssh session from my linux box to my linux box. I modified the shortcut on Window7 to run cygwin in 256 colors, no effect. Do I need to set an environment variable on my cygwin session ?
On Cygwin and On Fedora when "sshed" from Gygwin : TERM=cygwin

View 2 Replies View Related

General :: Copy A File Without Using Scp Inside An Ssh Session?

Jun 1, 2011

I have logged on to a system with ssh and there is no scp present on both the systems. How to copy a file without using the scp program.

View 3 Replies View Related

General :: How To Truncate File And Disconnect Session

Oct 7, 2010

I have two questions :

1) Is it possible to truncate the file content , not to drop the file ? i.e, I want to just delete a file's content only, not to drop the file .

2) I can find the connectd user using command 'w' or 'who' . Now How can I force disconnect a session from the list of 'w'/'who' command ?

View 1 Replies View Related

Software :: Possible To Use Apache Session On Downloading A File?

Mar 18, 2010

i want to let client download file using apache only!it will tell apache generate a session and let client download the file using that session!it that possible? what method or module should i use?

View 1 Replies View Related

OpenSUSE :: File Number Anomaly Between Twonky And Rsync

Apr 27, 2011

In short, using rsync to upload master database of music files to NAS which runs Twonky as media server. Rsync reports many more files being considered than Twonky reports as being available ie. 15K reported by rsync vs 13K flac and mp3 files reported by Twonky.Is there another easy way to count the number of files on NAS and in master database. I can mount NAS directory locally with NFS on same machine as master database.

View 1 Replies View Related

General :: Can Get Version Number Of Tar Used To Create Specific Tar File?

May 19, 2010

I need to know the version number of tar used to create a specific tar file. How can I do that?

View 1 Replies View Related

General :: Remove A File On System Using Inode Number?

May 19, 2010

If you create a file on UNIX/linux with special chars, like touch "la*, you can't remove it with rm "la*. You have to use the inode number(you can if you add the before the name, I know, but you'd have to guess as a user that it was used in the file creation).

I checked the manpage for rm, but there's no metion of the inode number. Doing rm inodenumber doesn't work either.

What is the command for this?

View 4 Replies View Related

General :: Using Sed To Replace A *large* Number Of Variables In A File?

Jul 28, 2011

I have a large number of log files, on a linux box, I need to cleanse sensitive data from before sending to a third party. I have used the below script on previous occasions to perform this task, and it has worked brilliantly (script was built with some help from here :-)

#!/bin/bash
help_text () {
cat <<EOF
Usage: $0 [log_directory] [client_name(s)]
EOF

[Code]...

However, now one of our departments has sent me a CLIENT_FILE.txt with 425000+ variables! I think I may have hit some internal limit. I have tried splitting the client file into 4 with around 100000 variables in each, this still doesn't work. I'm loathe to keep splitting though as I have 20 directories with up to 190 files in each directory to run through. The more client files I make, the more passes I have to do.

View 2 Replies View Related

Ubuntu :: Count The Number Of Lines That Are Unique To The File?

Jan 21, 2010

I recently found myself in possession of a large file (a few million lines in length) of short strings and would like to count the number of lines that are unique to the file. I thought this would be an easy process, but while working on the problem, I encountered the following. Can anyone explain this weird result to me?

Code:
alaric@alaric-laptop:~/Documents/Programming$ grep '^string$' file.txt | uniq | wc -l
1

[code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved