Debian :: Creating / Storing And Executing Scripts

Sep 17, 2015

Here is my script to create a sitemap with wget:

Code: Select all#!/bin/sh

wget --spider --recursive --no-verbose --output-file=wgetlog.txt http://http://www.cyberciti.biz/
sed -n "s@.+ URL:([^ ]+) .+@1@p" wgetlog.txt | sed "s@&@&@" > sedlog.txt

I named it Nixcraft.sh and in /Home I had made it executable via the file properties. In the terminal I entered:

Code: Select all./Nixcraft
and got
Code: Select allbash: ./Nixcraft: No such file or directory

View 14 Replies


ADVERTISEMENT

Debian :: Create A Place For Storing Images?

Dec 26, 2010

I have 2 images stored temporarily in home folder totaling 21 gigs. I recieved warning stating that home disrectory is full.

I used gparted and resized extended partition and home partition. When I look at disk usage it still says that I'm maxed out in /home/edward. How do I increase my share as I have plenty of space. Or, can I create a place for storing images? Also the images were created and placed there using clonezilla.

View 8 Replies View Related

Debian :: Executing Scripts From Cron ?

Oct 1, 2009

I am adding the following scripts to cron via crontab -e (as user)

Quote:

The first one is to record tv. I've added dev/null 2>&1 at the end. No too clear why but without it, it records only a few seconds.

The second script is (as you should already noticed) to turn off my computer at 6:25 am. It doesn't work (with or without dev/null 2>&1). I am surely forgetting something important. Could you please tell me what is it?

View 6 Replies View Related

Debian :: Creating A Debian Live CD For The Base System

Feb 10, 2010

I am thinking about creating a Debian Live CD with only the base system. I would like to know how to make the CD bootable so that it can load the kernel and continue with the booting sequence.

View 12 Replies View Related

OpenSUSE :: Kmail Not Storing The Passwords?

Apr 5, 2011

In my recently installed openSUSE 11.4 system I am using Kwallet to store all of my private passwords and also those associated with my Kmail accounts. All of these passwords appear correctly in Kwallet, but it seems there is a problem with Kmail accessing them.Whenever I start a new session, Kmail loads first and is followed by Kwallet. When Kmail then tries to do its first mail retrieval it stops and asks for the account password. I type this in and then Kwallet requests its administrator password. Once I type this in, my mail is downloaded and I get no further request for the passwords during that session.

The same thing happens when I attempt to send my first email of the day. I get a Kmail request for the SMTP account password. I've tried changing the Kwallet settings so that it doesn't close when unused for a period,or when the screensaver kicks in, but this (predictably) has no effect. In the Access Control screen, both KDE Wallet Manager and Kontact are shown as 'Always Allow' and I can see no other settings in either Kwallet or Kmail which are relevant to the problem.My guess is that the problem occurs because Kmail starts up ahead of Kwallet and therefore doesn't load the passwords initially. But that may be a red herring as I'm not familiar with the way Kmail and Kwallet interact.

View 4 Replies View Related

General :: Smartcards For Storing Gpg/ssh Keys?

Apr 14, 2010

I'm interested in storing my SSH keys and gpg keys on a smartcard for added security. However, I'm a bit uncertain on a few points, which are as follows:

How many keys can I get on a card? I assume both SSH and GPG can store keys on the card. Is there a limit to key size? I see a lot of cards saying they support 2048-bit keys, what about larger sizes? Hardware: can anyone recommend a card/reader combination that works well? I've done a fair amount of research and it seems PC/SC readers can be a bit iffy - is this your experience? Have I missed anything I should be asking? Are there any other hurdles?

I'm aware fsf europe give away cards with membership - I'm not sure I want to join, but... are these cards any good?

View 3 Replies View Related

General :: Storing Array From Awk In Bash?

Nov 24, 2010

i'm using awk inside bash. i've got an array in awk called arrayinawk. everytime i call another awk command in bash i have to keep creating arrayinawk to work with it. is there anyway i can store arrayinawk in bash and just call the stored value next time i use awk?

View 14 Replies View Related

Programming :: Python: Storing A Matrix For Later Use?

Apr 30, 2010

I'm writing a command-line flash card program in Python. I've tried many existing applications, but none fit my specialized needs.

All of the words I'd like to study are manually added to a text file (study.txt). Each time the software is loaded, it checks for new words in that file and also compares them to a dictionary (a tab-separated file, dictionary.txt), and adds that to a matrix. The flash cards are thus automatically generated from study.txt and dictionary.txt.

Now, the software must manage lots of information about each word I'd like to study and add new information made while interacting with the program (such as when that word should be studied next).

That seems easy to put into a matrix. But what is the best way to put that information in a place where I can pull it back when I run the software tomorrow? Do I need to save the matrix to a CSV file, then convert the CSV file back to a matrix the next time the application is run?

View 1 Replies View Related

Programming :: Storing Numbers In QByteArray?

Dec 15, 2010

I have a program that sends QByteArray datagrams over a udp socket. I would like to have 4 bytes of the datagram that contain a 32 bit integer. When saving numbers to the QByteArray, I have tried the static function number(int) and member function setNum(int), but they convert the integer to its decimal string representation and save that in the byte array. So if the number were 10, it takes 2 bytes, if it were 10,000,000 it takes 8 bytes. This wastes space, and makes it more difficult to get the number when it is packed with a few other pieces of data in the same datagram. Is there a standard way of doing this in Qt?

View 1 Replies View Related

Debian :: Creating A .deb Packet?

Mar 24, 2010

I have to do a .deb packet which will be placed in the repositories of the company.When this packet is installed, it only have to copy a plain text archive i've wrote before, to a path where it's being installed.The other requisite is that it have to watch if there's a program (vim) installed, if it's not installed, then the packet i have created shouldn't install.example:

# ls /home/loopin (as we see, this directory is empty)
# apt-get install mypacket
...

[code]...

View 14 Replies View Related

Fedora :: Storing And Reviewing Printed Jobs?

Oct 12, 2010

I need to review what people are using the printers for at work.I was wondering how I can do this under fedora. I basically need to store a copy of the printed jobs and view them afterwards..

View 5 Replies View Related

Fedora Security :: Tweaks For Storing Information In Ram?

Nov 19, 2010

I've been looking for a tweak that would allow me to store temp and log files in ram. I've found a few that involved editing the fstab file, but they were either Ubuntu articles or they were over a year old and perhaps didn't apply to Fedora 14.I hear there is also a 'noatime' command that can help speed up processes by telling the kernel not to saved when files are accessed.And what are the advantages and disadvantages of noatime, and writing log/tmp files to ram?

View 7 Replies View Related

OpenSUSE Install :: Storing Files On A Bootable Usb?

Apr 8, 2011

Using imagewriter, I was wondering if it's possible to store backup files on it. I have a 8GB usb drive but the imagewriter uses less 2GB to write the iso to it.

View 1 Replies View Related

Ubuntu Installation :: Hangs At 74% - Storing Language

Apr 6, 2010

I'm trying to install Ubuntu server 9.10 x64 on the following hardware:

Amd 64 2.2 Ghz
Kingston Hyper x 1gb
PATA 160gb HD
DFI Lanparty Motherboard

The issue is that the install gets stuck at 74% - storing language.

I have tried different ISO's and burnt different CD's.

View 5 Replies View Related

Programming :: Parsing And Storing Multiple Values Using 'awk'?

Jan 24, 2011

I have a variable in which the data is stored as below:

variable_test=0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s .....an so on.

There are lots of values in format like "3m1.057s" are stored in variable_test separated with an space between two such values. For exapmple, value is "3m1.057s" I need to save different parts of a value in three separate array variables such as the

var_hour=3
var_min=1
var_sec= 057

tell if this can be done using "awk". A "WHILE" loop might be used to separate and store theses values I guess?

View 1 Replies View Related

Software :: Audio Books Storing With Categorization

Apr 8, 2010

I'm starting to take advantage of a lot of the software packages that come with Ubuntu, and I am finding an abundance of software for just about everything. So far, the best application for my needs is the Calibre E-Book Reader, and I am wondering if a similar program exists for audio books. Something which would store them altogether, and categorise them by title, date, genre, author etc.

View 1 Replies View Related

Debian :: Creating Debian Packages

Jan 30, 2010

I am going to start reading about how to create Debian packages. Yet I would appreciate a simple overview about the process.Specifically, I would like to start with something simple: building a package with the Firefox 3.5.7 tar.gz pre-compiled binaries.If I understand correctly, the source files from Debian are modified in some way from the upstream provider, but my little Firefox project is not dealing with sources at all. The binaries are already compiled. So I'll appreciate a simple overview about creating a package from those Firefox binaries.

I realize the Firefox binaries can be installed as is, along with needing to create three sym links. That is not my goal. I figured starting with pre-compiled binaries will be an easier start into the Debian packaging process. Further, I prefer to install software with a package manager as that provides a system that is easier to maintain long-term.I suspect that an aide to my learning would be to extract the Iceweasel package and then draw similarities from that.

View 2 Replies View Related

Debian :: Creating A Shortcut For Gedit?

Feb 9, 2011

as I found an easy way to create a shortcut for the terminal on the net, I was trying to apply the same method to create a shortcut for gedit, which is a great text editor that I use very often.I don't know what when wrong but I must miss something because it obviously doesn't work.Here is what I did:1.ran: sudo gconf-editor2. went to /apps/metacity/keybinding_commands3. Set "command_2" to "gedit" (I also tried with "gedit-2" as it is the name of it in the list of the applications in the apps folder)4. went to to /apps/metacity/global_keybindings5. set "run_command_2" to the key I wanted, <Control><Shift>g(I tried as well with other combinations such as <Alt>g, <Shift>g, no successAnyone knows what I didn't do or did wrong?(I suppose that it comes for the name of the command on step 3, but I don't know what could be the name to put (if you guys could also tell me where to find a kind of list for the names to put in, like for others programs, it would be nice)

View 5 Replies View Related

Debian Installation :: Creating Disk From ISO?

Feb 16, 2010

I have downloaded 4.37 gigs of Debian yesterday and have unzipped it. How do I create a bootable disk?

View 5 Replies View Related

Debian :: Creating A New Swap Partition ?

Jul 3, 2011

Currently my system runs on two disks, sda 30GB and sdc 1GB. sdb is my data disk. I have set the partitions as sda1 /boot, sda2 /(root) and sdc1 /(swap).

Thinking that sdc was udma33 i used the disk for a swap area. Later i found out that it is pio4 and i want to relocate my swap area to sda.

Using GParted Live i am planning to create a swap partition to sda. Will fixing the entry in fstab be enough to correct this or do i need to do something more?

I could also use some advice on which live debian image i can install in sdc, to use for rescuing purposes. The capacity of the disk is 1080MB.

As a side note, the images i find for usd-hdd are direct download. Are there any torrent files for these?

View 2 Replies View Related

Debian Configuration :: Creating A DVD Repository?

Jul 25, 2010

I have a server running debian 5 in a closed intranet (I can't get to the intenet). I want to install some program and update others.

Is there a way to download part of a repository (using a FTP client) so I could burn it on a DVD?

View 3 Replies View Related

Debian :: Creating An Icon For Mozilla?

Apr 14, 2010

Ok I just installed mozilla firefox or at least believe I did with this here.

apt-get remove iceweasel
mv firefox-3.0.5.tar.bz2 /usr/lib/
cd /usr/lib/

[code]....

View 4 Replies View Related

Debian :: Creating Local Repository From 5 DVD Set

Jan 6, 2011

I freshly installed debian lenny using the 5 DVD set that I downloaded from debian.org. I want to create a local repository for all packages that are available in DVD so that I do not insert the disc everytime I install a new software. I have searched various forums but not able to figure the right way to do it.

View 1 Replies View Related

Fedora Security :: KWallet Not Storing Gmail's Password?

Aug 26, 2011

This used to work in Fedora < 15. Whenever I want to send an e-mail using Gmail's SMTP server for the first time in a given session, the KWallet system asks if I would not rather migrate the password and store it encrypted inside a wallet. Every time I concur and every time an error message pops-up, as soon as I try and send another e-mail. The attached snapshot shows the error message I get. It doesn't matter how many times I select "Store Password". Every time the ordeal is the same. Up to Fedora 14 this method worked all right, but now it fails.

View 1 Replies View Related

General :: Variable Storing The Previously Executed Command?

May 23, 2010

I want to use PROMPT_COMMAND variable to build a history of all the commands i execute. So Basically i want to append the last executed command to my own command log file. How can i find the last executed command ?

I want to add PROMPT_COMMAND="echo $last_executed_command >> my_command_log" But I am not sure how to find the last executed command

View 2 Replies View Related

General :: Get The Control Panel But The Report Is Not Storing In The Database?

May 4, 2010

Installed configured the squid2mysql, now i can get the control panel but the report is not storing in the database

other wise if you are having any other squid monitoring tool

View 2 Replies View Related

General :: Storing Data To An External Device From Aspire One?

Aug 14, 2010

I have an Aspire One with Linux operating system.

I have an external hard drive that I want to save data to from my Aspire One however when I try I get a message that the external hard drive is full.

I know it isn't full and when I use the external hard drive on my other pc with Window 7 it is fine.

I am assuming my problem is something to do with the ACER Aspire One

View 7 Replies View Related

General :: Storing A Variable In A Shell Script After Awk Output?

Feb 8, 2010

On command line I have no problem storing a variable e.g

Code:

:~/bin$ process=`ps -ef | awk ' $8 == "idesk" { print $2 }'`
:~/bin$ echo $process
26736
:~/bin$

When I try to incorporate this into a shell script I get a blank.

Code:

:~/bin$ cat process_idesk
#!/bin/bash
process=`ps -ef | awk ' $8 == "idesk" { print $2 }'`

[code]....

The process_idesk script has been chmoded to be executable by the user. I'm sure there must be a silly omission on my behalf.

View 3 Replies View Related

Software :: Selecting 2GB Pendrive As The Target Storing Place?

Mar 30, 2011

I've accidentally deleted some files and now am trying to recover them using Photorec. I've created a separate partition to copy the recovered files to (3GB). When I run Photorec it only stores the first 5 files or so (totalling about 200Kb) and then stops reporting "no free space on the disk, select another destination". I've tried selecting my 2GB pendrive as the target storing place, but got the same error message.

View 1 Replies View Related

Programming :: Create A ZIP In Perl Without Storing Path Information?

Mar 1, 2010

I have the following code snippet:

Code:

my $file = 'test/mybigfile';
my $zip = Archive::Zip->new();
my $zipped = $zip->addFile($file);

[code]....

it simply takes a file (in this case, "mybigfile") and creates a ZIP file containing that file only. Now, my problem is that when I go to decompress the ZIP file, it creates the relative (or absolute, depending on case) path of the original file. To make an example:

Code:

$ pwd
/tmp/perl
$ ls -R

[code]....

What I need is *not* to store the path information inside of the ZIP file, so that once I decompress the ZIP file I only get the original one without having paths created.

View 2 Replies View Related







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