Sponsored Content
Full Discussion: Getting a random file
Top Forums Shell Programming and Scripting Getting a random file Post 302101327 by davidY on Monday 1st of January 2007 04:03:13 AM
Old 01-01-2007
THanks guys! I hope my wallpaper will now change every 1 hour ^_^
 

10 More Discussions You Might Find Interesting

1. Programming

[C++] File I/O (Reading from a Random-Access File)

INFO: The program should enter a circle radius and Id for that circle to a file, then it should search for that id and print the radius for that circle. PROBLEM: This program compiles but it's not searching properly. Circle.h #ifndef CIRCLE_H #define CIRCLE_H #include <iostream>... (0 Replies)
Discussion started by: VersEtreOuNe
0 Replies

2. Linux

random number as file owner

Dear all, I get the situation from my office but i cannot think what is happening. please give me some advise. 1. some file owner and group is changed to a very long number 2. i login as root. when i touch a file or operate on the file like chown, cp, the response is "Read-only file system".... (1 Reply)
Discussion started by: rickhlwong
1 Replies

3. Shell Programming and Scripting

how to change the current file processing to some other random file in awk ?

Hello, say suppose i am processing an file emp.dat the field of which are deptno empno empname etc now say suppose i want to change the file to emp.lst then how can i do it? Here i what i attempted but in vain BEGIN{ system("sort emp.dat > emp.lst") FILENAME="emp.lst" } { print... (2 Replies)
Discussion started by: salman4u
2 Replies

4. Shell Programming and Scripting

random select text file ranamed

i want to need script.. source.txt /home/user1/public_html/test3 /home/user90/public_html/test9 . . . /home/user650/public_html/test000 read source.txt and cd /home/user**/public_html/*** and there is 1.txt, 2txt ~~25.txt and select 6 text files randomly among the... (4 Replies)
Discussion started by: topic32428285
4 Replies

5. Shell Programming and Scripting

Pick random file from ls command.

Lets say I want to pick a random file when I do an "ls" command. I don't have set number of files in each directory. ls | head -1 This gives me the first one in each directory, is there a way to do the same but pick a random one. (3 Replies)
Discussion started by: elbombillo
3 Replies

6. Ubuntu

expect script for random password and random commands

Hi I am new to expect. Please if any one can help on my issue its really appreciable. here is my issue: I want expect script for random passwords and random commands generation. please can anyone help me? Many Thanks in advance (0 Replies)
Discussion started by: vanid
0 Replies

7. Shell Programming and Scripting

Random File Selection and Moving

OK, I am stumpped. I have this shell Script that I want to randomly select a file with the extention of .sct. Then using a portion of its file name select the six related .mot files. Then move them all to another folder. I also need a user input form for the number of .SCT files to randomly select... (6 Replies)
Discussion started by: stak1993
6 Replies

8. Shell Programming and Scripting

choosing random columns from a file

Hello, I want to choose random columns from big file. for example: My file contain around 21000 columns and I want to randomly extract 4000 columns from this file. Anybody has a solution (may be one liner or a function in perl or awk) for this? Thanks, R (2 Replies)
Discussion started by: ryan9011
2 Replies

9. Shell Programming and Scripting

Need to generate a file with random data. /dev/[u]random doesn't exist.

Need to use dd to generate a large file from a sample file of random data. This is because I don't have /dev/urandom. I create a named pipe then: dd if=mynamed.fifo do=myfile.fifo bs=1024 count=1024 but when I cat a file to the fifo that's 1024 random bytes: cat randomfile.txt >... (7 Replies)
Discussion started by: Devyn
7 Replies

10. Shell Programming and Scripting

Recurse directories and return random file

I have a nice program to change the background but I want it to operate on subdirectories as well. # Script to randomly set Background from files in a directory while true;do # Directory Containing Pictures DIR="/home/pc/Pictures" # Internal Field Separator set to newline, so file names... (4 Replies)
Discussion started by: triplemaya
4 Replies
FBSETBG(1)							  Fluxbox Manual							FBSETBG(1)

NAME
fbsetbg - Set a background wallpaper or pattern SYNOPSIS
fbsetbg [-uU wallpapersetter] [-fFcCtTaA] wallpaper fbsetbg [-uU wallpapersetter] -rR path fbsetbg -bB fbsetrootoptions... fbsetbg [-l|h|i|p] DESCRIPTION
fbsetbg(1) is a wrapper that tries to find a suitable background-setting app and then tries to set the wallpaper using that app. You don't have to configure fbsetbg. It just uses the first app it can find. Furthermore it supports remembering the last set wallpaper so you don't have to edit the style or init-file to change the wallpaper. It aims to provide clear error messages in a window that make debugging problems easy. OPTIONS
-f file Set fullscreen wallpaper. -c file Set centered wallpaper. -t file Set tiled wallpaper. -a file Set maximized wallpaper, preserving aspect (if your bgsetter doesn't support this option fbsetbg falls back to -f). -u wallpapersetter Use specified wallpapersetter, use no argument to forget. -b fbsetrootoptions Forward the options to fbsetroot(1). These can be used to set a solid, pattern, or gradient background texture. -r directory Set random wallpaper from a directory. -F, -C, -T, -A, -U, -B, -R Same as the lowercase option but without remembering. -l Set previous wallpaper. Or, if the random feature was last used, set another random wallpaper from the same directory. -i Display useful information about best wallpapersetter found. -p Display some useful tips. -h Display a help message. FILES
~/.fluxbox/lastwallpaper In this file the wallpaper you set will be stored, for the -l option. ENVIRONMENT
wpsetters Wallpapersetters to use. This can be a space-delimited list of the applications to try, or just a single name. DISPLAY The display you want to set the wallpaper on. EXAMPLES
To use feh(1) as wallpapersetter and set wallpapper.jpg from the current directory as wallpaper. $ wpsetters=feh fbsetbg wallpaper.jpg Recall the last set wallpaper on display :0.0 with the stored options. $ DISPLAY=:0.0 fbsetbg -l BUGS
fbsetbg(1) is not foolproof. AUTHORS
The author of fbsetbg is Han Boetes <han at fluxbox.org> This manpage was converted to asciidoc format by Jim Ramsay <i.am at jimramsay.com> for fluxbox-1.1.2 SEE ALSO
fluxbox(1) fbsetroot(1) AUTHOR
Jim Ramsay <i.am@jimramsay.com> Author. fbsetbg.txt 28 October 2011 FBSETBG(1)
All times are GMT -4. The time now is 01:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy