0
votes
0answers
7 views

Where is the cron timer

Is there any way to access the cron timers and get the seconds left until the next execution of scripts in the crontab or maybe the seconds since the last?
0
votes
0answers
10 views

Best way of updating Openssl on Linux machine

I have a confusion to choose the best way for upgrading the OpenSSL on my Linux machine. 1*Through the yum Update.* # yum update I know this will update the entire packages. But If I want to ...
0
votes
0answers
3 views

Kate editor: how to jump to modified lines?

Say I'm editing a long document and I have made a number of changes. I want to be able to jump to each changed line. Is there a way to do this? I know about line modification indicators and I have ...
0
votes
0answers
6 views

yum update version issue

I am using fedora 13 (2.6.33 ). Due to some reasons I cannot update the kernel nor can I upgrade fedora itself to 18. So my question is how do I update my applications to the latest versions using ...
0
votes
0answers
3 views

Package Installation log creation

I have written a script for installing packages on Linux(Ubuntu). So I want to create a log file for installation of packages for troubleshooting if any problem occur during installation.So please ...
0
votes
1answer
13 views

AWK how to add all columns beginning with specific row

I have this output: Count Process 238 0 1 1124027 1 1124065 1 1124066 1 1124069 1 1124072 1 1124073 1 1547365 1 1547366 I wanted to add all Count ...
0
votes
1answer
12 views

How to get “current glob” in zsh

I want to do something like: $ convert [a,b,c,d,e].png -resize 50% <current_match>_half.png How can I do this? Is there some variable that stores the current match? I couldn't find anything in ...
0
votes
0answers
4 views

Do I need to install LIRC seperately in Fedora 18?

I just finished installing Fedora 18 and out of the box I noticed that it recognizes my IMON/MCE Remote control. I have had to make some changes to the rc_keymaps/imon_mce file to remap some of the ...
0
votes
0answers
6 views

Conky above full screen

I would like to run an instance of conky on top, that is, to always be visible. I tried to use own_window yes own_window_type normal own_window_class conky own_window_transparent no ...
1
vote
0answers
12 views

How to use regular expression to separate numbers and characters in strings like “30M1000N20M” [migrated]

I'm trying to separate the [0-9] and [A-Z] in strings like these: 100M 20M1D80M 20M1I79M 20M10000N80M I tried using the Python re module, and the following is the code I used: >>>import ...
1
vote
1answer
22 views

How to display open file descriptors but not using lsof command

Hi I have read Here that lsof is not an accurate way of getting the number of File Descriptors that are currently open. He recommended to use this command instead cat /proc/sys/fs/file-nr While ...
1
vote
0answers
12 views

Recursive wget eventually starts failing with “Unable to resolve host” / “Temporary failure in name resolution”

When recursively wget-ting a fairly large site, after downloading 18 MB or so, wget starts complaining "Unable to resolve host" and/or "Temporary failure in name resolution", even though I can look up ...
2
votes
1answer
10 views

How can a bash script detect support for window titling escape characters?

I have a debug trap that runs every time I enter a command in bash that sets the window title to indicate what command is running. I'm leaving out all the configuration details and boil it down to: ...
2
votes
1answer
25 views

SSH host key keeps changing

I am trying to set up a web service (using the Play Framework) on an Ubuntu machine on the network. However, I am experiencing intermittent failures connecting to it, not being able to connect to it ...
2
votes
1answer
17 views

How do I mount an NTFS partition in /etc/fstab and prevent files/directories from receiving exec permissions when they're created?

I have an NTFS partition that I want to mount using /etc/fstab. I don't want any files to have executable permissions on this drive, so I wrote the following rule: /dev/sda2 /media/sharedfolder ntfs ...
0
votes
0answers
22 views

Existing file can not be found? [duplicate]

/usr/share/tipp10$ ll insgesamt 9408 drwxr-xr-x 3 myname ssl-cert 4096 Feb 26 20:07 ./ drwxr-xr-x 288 root root 12288 Feb 26 20:07 ../ -rwxrwxrwx 1 myname ssl-cert 9480 Okt 6 2010 ...
0
votes
0answers
15 views

DNS Server error after password change [migrated]

The person who set up our internal DNS utilized an Ubuntu server (10.04) as our primary DNS and a Windows 2003 server as our secondary DNS. None of the people who set this up are still with the ...
4
votes
6answers
119 views

How can I have more than one possibility in a script's shebang line?

I'm in a bit of an interesting situation where I have a Python script that can theoretically be run by a variety of users with a variety of environments (and PATHs) and on a variety of Linux systems. ...
1
vote
1answer
25 views

What happens when I copy a file from one network location to another

Suppose I have three networked computers: A, B and C. A mounts a directory from B and from C. A/mnt/im-on-B/ A/mnt/im-on-C/ A then copies a file: cp /mnt/im-on-B/file ../im-on-C/ What happens ...
0
votes
1answer
13 views

How to access the Local FTP YUM repo from client Machine

I setup the FTP server on Machine A 192.168.1.105 and created the YUM repo. And placed following contents in it. #vi rhel-localftp.repo [rhel-localftp.rep] name=bla bla bla ...
2
votes
1answer
15 views

How do I route traffic through specific interface for a specific process

I have a script that runs from cron every 15 minutes. The script is meant to ping my DNS server to update a dynamically changing IP. I want this script to ping through the wlan interface and not the ...
4
votes
3answers
266 views

How to cause kernel panic with a single command?

Is it possible to cause a kernel panic with a single command line? What would be the most straightforward such command for a sudoing user and what would it be for a regular user, if any? Scenarios ...
1
vote
2answers
37 views

How to run grep and show x number of lines before and after the match

grep returns just the line where it matched the regex and often what I want to really see is a few (say 2) lines above and below the matched one. Is there a simple way to achieve it? EDIT: OS: Ubuntu ...
3
votes
1answer
42 views

Definition of sane

Does sane have a technical definition in a unix / linux context? I mean in situations such as this: checking whether build environment is sane... yes
1
vote
0answers
5 views

wvdial connection always shows status disconnected

I use wvdial to connect my usb modem. However, the system always shows "disconnected" as the status. As a result, I cannot use applications which are connectivity-aware. How do I go about correcting ...
1
vote
0answers
14 views

Decrease the font size in Cinnamon from the command line

While I was playing with Cinnamon settings I set the font size to 990 from the font icon available in cinnamon settings. Now I can't use any applications because of the font. It garbles the whole ...
0
votes
1answer
34 views

What is the default jobs argument for make?

How many jobs does make use by default when you don't pass it the -j flag?
1
vote
1answer
11 views

How to edit grub2 to use kdump?

I was following http://fedoraproject.org/wiki/How_to_use_kdump_to_debug_kernel_crashes and in step 2 I need to add the line to grub.cfg, but grub.cfg is a shell I do not know how to edit it, most ...
1
vote
0answers
10 views

Kernel freeze when writing a e1000 driver [migrated]

I am writing a network driver for the e1000 card. While doing the receive part, I saw that the kernel freezes whenever it reaches the netif_rx(skb) call. I was able to reproduce the same error when ...
3
votes
0answers
21 views

Why Nmap fragmented scan is only working on Backtrack?

I spent quite a few hours today trying to capture and study some fragmented IPv4 packets using Wireshark and Nmap security scanner. I tried a couple of different OS' (Ubuntu and Debian) but to my ...
1
vote
1answer
32 views

Perl CPAN module download fails

The download for the 'App-xml_grep2-0.14.tar.gz' perl module continually fails for me. cpan http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/App-xml_grep2-0.14.tar.gz Please login with USER and ...
0
votes
0answers
19 views

FS corruption just a coincidence?

Yesterday I replaced one of the HDDs in my remote server. The setup is simple - Debian Linux (testing), software RAID 5, LVM with 4 partitions on it, home, var, usr, and swap. I pulled the old disk, ...
1
vote
2answers
59 views

Control how linux deletes files

What exactly happens when an application deletes a file? Is there any way to control this behavior? Basically I want to shred instead of rm in all cases, but of course applications do not make calls ...
2
votes
4answers
13 views

Capture complete process structure/stack

There are a lot of java processes running on the server, generally, we capture the PIDs of the java processes using command 'ps -ef | grep java'. In general, the java processes have a lot of jars in ...
1
vote
1answer
27 views

How to ssh on multiple ipaddress and get the output and error on the local *nix machine?

command="ls -lrt;uname -a;uname -o" for i in 10.38.227.229 10.38.164.103 do ssh auto21@$i "$command 2>&1" >> log #ssh -n auto21@$i "$command" 2> >> log done i am trying ...
1
vote
0answers
12 views

Centos 6.2: Unable to open terminal after vbox save state

I'm experiencing this issue frequently. Usually, I work on my Centos 6.2 in VBox for a while and then close it by saving state (going to other machines or doing host work). Then, I resume my session ...
0
votes
1answer
25 views

Failed dependencies trying to install package 'libxml2'

I am trying to install libxml2, but my system complains about dependencies. The dependent packages exist on system. The ultimate goal is to install xml_grep2, I have been trying various methods ...
2
votes
0answers
25 views

Using Unison with colordiff

I want Unison to show the diffs with colordiff. I’ve got diff = colordiff -u CURRENT2 CURRENT1 | less -R in my config file but it seems like Unison pipes the output to plain less nonetheless, so I ...
1
vote
2answers
46 views

Best way to call command within a shell function having the same name [duplicate]

I like to encapsulate commands within shell-functions using the same name. But to avoid the shell-function calling itself recursively, I specify the complete path of the command as the following ...
2
votes
1answer
58 views

SSH causes while loop to stop

I have finally managed to boil down a problem I have been struggling with for a few weeks. I use SSH with "authorized keys" to run commands remotely. All is fine except when I do it in a while loop. ...
8
votes
2answers
214 views

How are the processes in UNIX numbered?

I can't find any pattern when I look at the numbering of PIDs in process table (ps -a), as the PIDs are not subsequent numbers and sometimes there are large "gaps" between those numbers. Is it ...
1
vote
0answers
18 views

Disable RAID auto detect at runtime

In Linux, I'm partitioning two disks for RAID1 with fdisk. The first disk partitioning succedes, but the second fail because the raid starts automatically and occupy also the second disk (why? it ...
1
vote
1answer
22 views

Set global environment variables at boot in Solaris 11

I am wanting to create a file in Solaris, so that I can export a few "items" whenever the machine is started up. i.e. I want to export ORACLE_HOME and ORACLE_SID and some other directories, of my ...
0
votes
0answers
12 views

grub-install from the grub2 shell

I am trying to follow this answer but keep getting stuck with the following errors: me@greenlane:~$ sudo grub-install --boot-directory=/boot /dev/sdc /usr/sbin/grub-bios-setup: warning: File system ...
2
votes
2answers
37 views

Extract a column from whitespace-separated fields that are not aligned

How can we extract a column from output in which whitespace is not in a regular format? For example, when we type ps -ef, it shows all the process, process id's.... etc. How can we get only the last ...
1
vote
1answer
11 views

Xen: Migrating LVM-based machines from Xen Opensource to Xen Cloud Platform

we have several LVM-based VMs running on a Xen Opensource host. "LVM-based", in our case, means that there's a LVM volume for the root partition and another volume for the swap partition. The kernel ...
0
votes
1answer
18 views

Moving Same files from different folders using shell script on AIX 5.4

There are two folders named Folder1 and Folder2. Folder1 has files with name:For example S-080001-0-0.xml with its corresponding same files in Folder2 named S-080001-0-0.xml The change in Folder2 is ...
0
votes
0answers
36 views

`expect`-like behaviour in bash script

I have a script (let's name it parent.sh) that calls some other scripts based on input parameters. Finally, it calls the script child.sh. child.sh requests user's input in case it find that some ...
1
vote
2answers
56 views

grep: invalid content of \{\}

Here's the command : grep '\(2\)[[:digit:]]\{\1\}' numbers What I want is to match exactly 2 digits after the digit '2', 3 digits if I change the digit '2' to '3' in my expression, 4 digits if ... ...
2
votes
1answer
56 views

Huge page and performance improvemnt

How can using huge page improve performance? I have read that huge pages improve performance by reducing TLB lookups and reducing the size of the page table. Can someone tell me how this helps with ...

15 30 50 per page
1 2 3 4 5 423