0
votes
1answer
462 views

expr command used to work and stopped

I am on SunOS machine trying to get the date string of the past minute, yesterday I used this command I found on the internet expr `date +%Y%m%d%k%M` - 1 which is worked just fine and I saw the ...
2
votes
0answers
858 views

MPlayer benchmarking - realtime FPS counter

I was trying to use MPlayer as a simple benchmarking tools and I need it to show the real time FPS counter, either on the console or on the video playback itself. I googled around and I stumbled ...
0
votes
1answer
492 views

top not working

My below cronjob is not working. What am I doing wrong here?? */5 * * * * /usr/bin/top -n1 | head -10 >>/tmp/load.txt
1
vote
2answers
586 views

screen buffer and dialog

I was trying to use different screen buffer for my script using tput. Below is small script that I am running. tput smcup clear dialog --yesno "Do you want to continue?" 0 0 rc=$? clear tput rmcup if ...
2
votes
1answer
406 views

Allow application specific access in iptables using guid

I would like to get Skype working with iptables and don't want to allow a huge range of ports thus I thought a solution might be iptables -A OUTPUT -m owner --gid-owner skypeGrp -j ACCEPT iptables ...
1
vote
0answers
90 views

Openbox placing cursor on the window titlebar

I was able to use one really neat thing. In many DE or WM, when you Maximize the window and then try drag the window from the Titlebar, the window would be Unmaximized. I achieved this by the ...
4
votes
2answers
1k views

How to bzip a file with minimum cpu percentage?

I am using bzip2 to compress a file,the process takes more that 100% cpu.Is there any way to run bzip2 with minimum CPU precentage.
1
vote
3answers
79 views

Creating a variable to a directory that persists until deletion

I'm currently using bash on Ubuntu, and I work a lot with a directory saved at /home/me/path/to/project_dir. It is a nuisance to change to the directory every time I open bash. So I'd like to save the ...
2
votes
1answer
2k views

Change GTK themes on the fly

I'm not running xfce4 or gnome, so I can't use their respective settings manager. Now I want to alter the GTK theme of all running apps, do you think that's possible? I think there's a signal or ...
0
votes
1answer
878 views

How to change keyboard speed in the Linux console? [duplicate]

When I press Ctrl + Alt + F1 the desktop environment disappears and a terminal window appears. Pressing Ctrl + Alt + F7 brings me back to DE. This terminal is useful when the DE hangs for some reason ...
1
vote
1answer
197 views

Graphical login of a local user remotely

I'm trying to automate a lab of computers running Fedora 17 (Gnome). I need to write a script that logs out the current local user on the system and logs in as a different user. The systems are ...
2
votes
2answers
158 views

Remote access SSH problem

I have been asked to setup a lab with 1 PC (fedora 18 OS) and 4 SGI (IRIX 6.5 OLD OS). I am using a switch to connect them to university's network, and I asked tech guys to assign static IPs to them. ...
12
votes
3answers
13k views

Switch between tabs in gnome-terminal with keyboard?

Once I've created a new tab in gnome-terminal with Ctrl+Shift+t, how can I switch back and forth between the tabs using the keyboard? For example, in Google Chrome the keyboard shortcut is Ctrl+Tab ...
3
votes
2answers
3k views

How does logrotate treat globbing?

If I have a logrotate config file like this, # matches multiple ones /var/log/project/*.log { ... prerotate ... endscript ... } So how does the glob work here? If I have 3 log ...
1
vote
1answer
290 views

Key binding of the Menu Key

I have the Menu key that I don't use. It's right under my thumb when I use the arrows... So I wanted to map it to the Insert key. (mostly because of its important use in vim) I've been looking into ...
1
vote
2answers
61 views

Adding a line in vim adds it at the line after the cursor, I would like to insert

I have this keybinding in .vimrc: map + :put=''<cr> map - dd I find it really useful for fast layout and source file cleaning with + and -. But using :put=""<cr> adds a line after the ...
4
votes
2answers
1k views

Sort lines by unicode value

I'm trying to sort a text file linewise by their Unicode values. As far as I can tell, this means numerals first, then letters, then CJK-Ideographs. However, sort (with LC_ALL=C) fails horribly at ...
2
votes
2answers
9k views

Change Partition Table with GParted

I have an Ubuntu 12.04 LTS server that has 6x600GB SAS drives in a RAID 5 configuration (Perc 6/i). The partition scheme looks like this: Partition File System Mount Point Size /dev/sda1 ...
4
votes
2answers
153 views

Where does the yanked text on commadline get stored?

When you delete characters on the command line using readline commands (e.g. Ctrl-U, you can paste using Ctrl-y, but where does it get stored? It does not seem to use X11 clipboard at all.
1
vote
2answers
196 views

Changing soundtrack in a movie clip

What is the easiest way to change soundtrack of a movie clip? We recorded a clip using our camera, but the sound is not very interesting, hence we would like to use some music instead (we have an mp3 ...
1
vote
2answers
328 views

Turning standard output hyphen into a single command

I am working with scripts that output xml and I am using xmllint to format the output. Xmllint requires a source argument, so I use the hyphen to pipe standard output to it: $> script.php ...
2
votes
0answers
278 views

Unable to reduce core frequency freebsd

I'm working on a FreeBSD project where I need to maintain the temperature of the processor below a threshold value. In order to reduce the temperature I'm trying to dynamically change the frequency of ...
-1
votes
3answers
1k views

telnet implementation using C [closed]

The program in general is I want to implement telnet program. On the client side user send its logging name and password, and if it is correct he starts to send commands to the server On the Server ...
0
votes
2answers
1k views

access a command line via a web browser

2 questions: Question 1 My job blocks ssh which means that I cannot ssh to my home server. However, they do allow https out. Is there a package out there for ubuntu that will allow me to connect to ...
10
votes
4answers
13k views

How do I combine two logical volumes that reside on a single physical volume in LVM?

I have two logical volumes, one is mounted as /, the other is mounted as /home. I want to combine them, because the / volume is constantly running out of space. (Yes, I know what's using all that ...
0
votes
3answers
2k views

Safe Directory Delete

I alias rm to rm -i so that when I mistype file* as file * I get prompted before accidentally deleting files I didn't intend to delete. Is there an equivalent idiom for directories? In particular, ...
16
votes
4answers
3k views

Is there a top-like command that shows the network bandwidths and file accesses of running processes

For example, we'd like to see: PROCESS IF TX RX FILE(regular) R/W prog1 eth0 200kB/s 12kB/s -- -- wlan0 12kB/s 100kB/s -- ...
32
votes
5answers
54k views

How to recursively find the amount stored in directory?

I know you are able to see the byte size of a file when you do a long listing with ll or ls -l. But I want to know how much storage is in a directory including the files within that directory and the ...
3
votes
4answers
136 views

grep to find “print” not “#print”

In debugging, I use a lot of 'print' and commenting out it with '#print'. How can I use grep to find the line without '#' before 'print'? # print <- not detect #print <- not detect abc # print ...
-8
votes
1answer
289 views

File attributes does not exist in Linux? [closed]

There is no equivalent of Window's file attributes for Linux ?
5
votes
3answers
2k views

How to search files where two different words exist?

I'm looking for a way to search files where two word instances exist in the same file. I've been using the following to perform my searches up to this point: find . -exec grep -l "FIND ME" {} \; ...
0
votes
2answers
312 views

SSH -L Tunnel no longer working

Local machine running my scripts needs to access a remote server's DB. Last week I could do, on the local machine ssh -f -N -T -L1081:localhost:3306 ueser@remoteserver -p2222 on the local machine: ...
1
vote
2answers
381 views

Different shells for interactive and non-interactive work

Due to constraints at my workplace, the default shell for every user is tcsh, and I am required to use tcsh as my non-interactive shell (i.e. we do most of the environment configuration across ...
4
votes
1answer
2k views

Using hardware clock on linux

I using an old version of RHEL that I have recently upgraded from 5.4 to 5.8, with a customised 2.30.9 kernel. The system clock drifts wildly (> 5 seconds/day) unless it is controlled using an ...
24
votes
2answers
38k views

Use shared libraries in /usr/local/lib

I have build some libraries from sources, and the files after make install are in /usr/local/lib For example, in my case I have the file libodb-2.2.so which is in this directory. However when I ...
2
votes
5answers
3k views

How do I disable copy permissions?

Can we set permissions, on a Linux box OR for a particular directory (Scientific Linux in my case) that, one can read files but cannot copy, move or delete them? Update: My Scenario is, We developed ...
2
votes
1answer
432 views

perl + combine exec command with perl one liner line

I have the following short perl script rename.pl. How can I translate this script to one liner perl syntax? And how to combine the perl one liner in find command? rename.pl #!/usr/bin/perl $op = ...
3
votes
2answers
682 views

Limit rows max and min length

I have this input: XX3083136|bla-bla texthere texttt|asfdasfd@safdsadf.com|SADFdsafsafd|ASDfasfdsafd|DSFSAFD|dsafasfd|sadfsad| XX3083372|bla-bla-bla this is a text ...
0
votes
3answers
59 views

How to sed lines that contain only given form?

This is the input: asdfZE3033141xycf asdfINSFRHxycf and I need this output: asdfZE3033141 asdfINSFRHxycf So I used a: echo -e 'asdfZE3033141xycf\nasdfINSFRHxycf' | sed '/asdfZE3033141xycf/ ...
2
votes
2answers
459 views

Seeing scons file like python file in vim. File dependent properties

I know I can setf python and then the file is recognized as python. However I must redo this everytime I reload the scons file. I have read some weeks ago that one could write in the last lines of a ...
2
votes
5answers
312 views

move a directory with a single character (back quote) as its name [duplicate]

How can I move a directory whose name is just a space? ls -lah drwx------ 4 user1 user1 8.0K Mar 13 14:16 . drwxr-xr-x 3 root root 60 Mar 13 13:48 .. drwx------ 18 user1 user1 4.0K Mar 13 11:18 ...
12
votes
1answer
4k views

Wildcards inside quotes

This will be an easy one, but in my memories, when shell scripting, using double quotes would allow expanding globbing and variables. But in the following code: #!/bin/sh echo *.sh echo "*.sh" echo ...
2
votes
3answers
2k views

Why does sudo su work, but su does not? [duplicate]

I have tried this on Fedora and on Ubuntu. kshitiz@kshitiz:~$su su: Authentication failure kshitiz@kshitiz:~$sudo su root@kshitiz:/home/kshitiz# I am entering the same password in both the cases. ...
1
vote
1answer
53 views

Pidgin replace my symlinks

If I move the settins.xml (or any other file) from the .purple folder into another place and create a symlink to this file instead, it gets replaced by regular files after a restart of pidgin. I want ...
1
vote
1answer
581 views

In Dolphin file manager Fedora 17, what is the shortcut to create folder?

In Dolphin file manager Fedora 17, what is the shortcut to create the new folder. E.g. Ctrl + Shift + N creates new folder in Windows 7
-1
votes
2answers
5k views

Unable to connect to remote host using ssh

I have recently installed Fedora in my system. But I am facing some problem in ssh login from remote machine. I am able to login in that system but every time its requires me to login using GUI in ...
3
votes
2answers
2k views

/nagios/cgi-bin/statusmap.cgi was not found on this server

I installed Nagios 3.4.4 on Ubuntu server 12.10. Installation was successful but now I'm not able to view maps and trends.When I try, I get the following error /nagios/cgi-bin/statusmap.cgi was not ...
2
votes
1answer
2k views

Why can't I use strace with rsh?

If I run rsh, it works, but prints some strange “Connection refused” messages at the beginning: $ rsh localhost pwd connect to address 127.0.0.1 port 544: Connection refused Trying krb4 rsh... ...
1
vote
0answers
169 views

LXDE use WinKey to open AND close main menu (LXPANEL)

I was able to set Winkey to open the menu. But I expect that pressing it again would close the menu which is not happening. This issue is almost the same as this: GNOME: Use WinKey (Super_L) as a ...
7
votes
3answers
2k views

cd to a directory and execute many commands

I have following script. #!/bin/bash mount /dev/sda6 /mnt/gentoo set +e cd /mnt/gentoo && mount -t proc none /mnt/gentoo/proc \ && mount --rbind /dev /mnt/gentoo/dev \ && ...

15 30 50 per page