General :: Creating Tar : Shell Vs Ui, Size Differs?
Oct 14, 2010In a shell script, I am creating a .tar using this command
Code:
tar -zcvf dst/lib/library.tar.gz dst/lib
There are two problems:
[code]...
In a shell script, I am creating a .tar using this command
Code:
tar -zcvf dst/lib/library.tar.gz dst/lib
There are two problems:
[code]...
I've got a small problem with dwhelper. Now when I'm trying to download anything from ..... DH doesn't download and creates only empty files.
View 1 Replies View RelatedI would like to create the shell which would support the LS command in C++. And the way the command prompt can be changed.
View 7 Replies View Relatedi need the source code to create my own shell in linux or provide atleast procedure for doing it
View 9 Replies View RelatedI am trying to learn shell scripting. What does the dollar sign mean, and these signs {}
DEST="${DST}`date +%F`/"
When i change the directory using 'cd', the length of my shell prompt keeps on increasing. To make it more clear kindly see below
Code:
$> cd MyWorks
$ Myworks> cd Shell
[code]....
am trying to write a shell script to find the size of a particular log file and if the log size grows, script should mail the changes to the administrator or a any user so script should monitor the log file continuously in a time interval, how can i do that?
I tried with these codes to find the file size but it throws me error says command not found
$s=$( stat -c %s mylogfile.log)
echo $s
i want to Restrict a particular user from creating a file beyond a prticular size.ie he should not be able to create a prticular size [say 10mb] but he can use upto 10 gb.[ not the quota space i mean]
View 6 Replies View Relatedhow to do in Debian
1. am required to create a bash-shell script called terminator that terminates all processes of a name given to the shell script as an argument. Make sure the terminator shell script will not take any crucial file system services as arguments.
2. Show how you would configure an Ethernet card by reapplying your existing IP and network mask
3. Install a workable nfs file sharing system between your system and a remote system, using optimum values for resize and wsize.To demonstrate send a 512Mb block of random data between client and server using the dd command.Write down the relevant steps and procedures
`cat /var/log/secure | grep "refused connect" |awk '{print $9}'|sed 's/::ffff://g'|uniq -c | sort -nr |head -2 | awk '{print $2}' >/root/sample`
for IP in `cat /root/sample`;
[code]...
1. How do I create an array with 5 entries
2. Output one of the entries in the array randomly
3. Subtract the entry output from the array
4. Repeat steps 2 and 3 until there are no more entries in the array
I have a two hours long home video with I edited in a video editor program. I'd like to burn it to DVD, but first I need to export it to an mpeg file. Cinelerra doesn't allow me to render to mpeg, instead it offers .avi or .dv - problem is that the resulting file size is enormous. (i.e. 1 minute of .avi = 1.2GB! or around 500MB when I output to .dv) What file format would be best to render to and at the same time not to get an insanely big file? I'd like to keep it under 1GB if possible.
View 2 Replies View RelatedI know that it's possible to create panoramic photos very easily with hugin. But I would like to create a script for nautilus where I select my picture and then create a panoramic without any questions.I guess it's possible but I can't find on google, each time I find something about hugin.Is it possible to call from the command line and hide the interface during the process ?
View 3 Replies View Relatedhow to create Samba user using shell script
View 6 Replies View RelatedI'm creating script to connect to mysql and perform function. I'm into process in querying mysql from shell. Here is the content of a sample script:
Code:
#!/bin/bash
USER=scripter
PASS=test123
DB=test_scripts
I just tried to burn an ISO to a CD-R in K3B, and it finished with the message "written data in track 1 differs from original." I get that a lot; until now, I blamed it on my failing CD drives . What can I do to avoid it besides burning at a slow speed? I know that, having heard years ago that I should burn at 4x; but my new DVD-RW burner's slowest writing speed is 16x. (I'm annoyed at that. It was a Christmas gift, and I didn't think of specifying a write speed. I wouldn't be surprised if new CD drives can't burn at such a slow speed, though.)
View 1 Replies View RelatedThis is regarding the KDE application Basket:
I want to create a shell script that I can run as a cron job to do automated backups. how to proceed. I have the source code and have pulled out the backup source files. Here is the link for the source code. The download is at the bottom of this page. The backup files can be found in the src folder listed as backup.cpp and backup.h [URL]
If someone can do this, I believe it will make a nice addition to the Basket application for all.
Also I am not running Kubuntu I am running Karmic 9.10 64 bit
I would like to a build a CD image (of CentOS 5, x86_64 that loads into memory and boots to the OS without installing anything to hard drives. Then I would like the system to execute a shell script automatically. The shell script will have commands that will control execution.
The goal of this exercise is basically to pre-configure a system (RAID config, BIOS update, etc) automatically using the shell script before installing the OS. I would like the ability to change the shell script as needed and probably repackage the ISO image. I would prefer not to deal with building a source tree to accomplish this. this is something one could do using mkisofs.
I was using UBUNTU and still do, but I dual boot UBUNTU/Slackware now and my Linux knowledge has increased so much. This forum has been right there with me for the last couple weeks and I was reticent to post a question until a knew I had exhausted the available sources. So here goes.....Can I change the font size of the system shell that begins at startup (with the boot info and stuff). I really like using this shell as user. The thing that would make me nuts for it is if I can make the text a bit smaller. I have a 1920x1200 display and could really take advantage of all of that "real estate." The other posts related to this seem to focus an a broken configuration from the beginning, but my install is SWEET. Can I change this or is it baked into the system?
View 11 Replies View RelatedI have a box that's used as an SFTP server. All users have restricted shell so they can only use SFTP to send and receive files. But it makes it hard to have them change their passwords. I thought that if we had a web page set up where the user could enter their username, old password, new password and confirmed new password, that this would be the easiest solution.
View 1 Replies View RelatedI have a command that outputs n lines of text, and I want to place each line into an array element, but I can't seem to get the syntax correct
So my command is this:
cat $configfile | sed -n '/cluster:'$clustername'/,/cluster/ p' | awk /host/
Which produces many lines depending on the value of $clustername. I'd like to get each line as elements of an array.
I have a file that's supposed to be growing in size 24/7. I want to check every 10 minutes via cron that it's actually growing. If not, send an email. Does anyone know how to write a script to do that?
View 3 Replies View RelatedNo Matter what I do and change in gnome-tweak-tool, the window title bar won't change to anything else, won't go smaller, even the downloaded themes won't change the bar, and I cant seem to find the needed codes in xml to change them. photo is attached to illustrate the things I need to changeI need to change their size in the first place, and maybe change them to like ambiance or whatever. i've seen many guides on the net, and It still don't find the neeeded solution
View 1 Replies View Relatedi'm getting messages like these in my bash console
Code: STACK size: 98222 [0x7f665dbe4e00 0x7f665db25090] and i'm not quite sure what they mean, so far it looks it's related to the shell stack limit set by ulimit, however i've tried to change it (increasing it) however this message still persists.
I need to check the free available size on the "/root" before creating a file .
Can i do it by using df?if not , can you specify me which one to use?
I am capturing the same traffic both on client and server. Using Microsoft Network Monitor on client and tcpdump on Linux server.
And when comparing the content of one specific frame captured on two machines, I see it different!
Precisely:
I have SIP communicator on client and opensips on server. Client is doing a REGISTER request to the server. This request contains "Contact:" header, which should contain an IP address of the machine.
When capturend on client, this header contains local private IP address of a machine with SIP communicator (which is 192.168.***). But when captured on server, this header contains the outer address of my provider's router.
I have 2 possible explanations:
1) Some unknown agent acting between my client and server
2) opensips itself is acting at a so low level, that the result of it's frame manipulation is visible by tcpdump.
I am interested if the second option is possible? opensips is a proxy, so does proxy able to manipulate frames directly in the medium?
If so, the is it possible to run tcpdump at a lower level, so that it see packets before opensips processing?
it is about the program sha1sum to create SHA1-hashes. As you probably know, SHA1-Hashes do have the length 20 byte. So when I just type:
Code:
sha1sum myfile
it produces an output of
Code:
(some20byte) myfile
just as it should. Now I want to store the 20byte hash in another file, I use this command:
Code:
sha1sum myfile | awk "{print $1}" >> myhash
Unfortunately I'm not familiar with awk, but this should cut off the end of the sha1sum output, which is the name of the file again. The problem here is: The newly created file myhash has the size 41 bytes, and printing it out I can see that it is not the original hash (I wrote a little program to print it bytewise).
Here is what I am doing I have a file, a.txt for example, with following contents:
Code:
coreutils install
cpio install
cpp install
cpp-4.3 install
dbus install
[Code]...
So it seems like the sorting algo. for dpkg --get-selections is different than sorting algo. of 'sort' command when it encounters "-" (hyphen). How can I sort the original file (a.txt) in such a way that it produces the output file ,b.txt, exactly the same.
Perhaps somebody knows this one:
When I mount my external usb-drive within KDE it's mounted on /media/disk.
When I mount my external usb-drive (yes, the same one) within LXDE it's mounted on /media/72F580136411D534.
Not a great deal, but when I use DirSyncPro to backup some stuff I have to make adjustments to my saved settings, e.g. change the target folders.
I'm setting the hardware clock on RHEL 5.1 system using /sbin/hwclock --systohc. After setting the clock I issue a date command followed by a /sbin/hwclock --show from within a script to get fast resolution and I see that the hardware clock precedes the system time on average by .5 seconds. I would think the clock should be identical after setting.
View 2 Replies View Related