0
votes
1answer
51 views

Automated sudo and screen command

I would like to be able to launch a script in a separate screen command session as a separate user when I run a .sh script. Here is what I think it may be in the script: #I am also starting xampp ...
1
vote
1answer
29 views

Restore session/state in terminals

When I close my browser it remembers "state" in the sense that it remembers what tabs I have open and text that I had entered into various forms. Is there a way to do something similar with my ...
1
vote
1answer
247 views

dropboxd Syntax error: “)” unexpected

I am trying to install dropbox(x86_64 version) on Ubuntu 12.04 LTS, with this installation guide: ...
1
vote
1answer
71 views

many doubts related to the ldconfig command?

I am pretty new in Linux and I have some doubt related to this operation that I have found into a bash script on which I am working: ldconfig -v >> /dev/null 2>&1 Reading on the man ...
1
vote
2answers
108 views

some doubts about chown command in linux?

I am pretty new in Linux and I have a doubt related to the use of the chown command use. If I have something like this: chown -R root:root /usr/share/MyApplicationDirectory What exactly mean? I ...
1
vote
1answer
113 views

Stuck in a while-loop in GNU/SU (seismic unix)

I'm new to programming. I have this loop (it's part of a data processing script) and I have it all good until this section cause I can't figure out why it stay looping in the second 'while' Take a ...
2
votes
3answers
736 views

Where should I export an environment variable so that all combinations of bash/dash, interactive/non-interactive, login/non-login, will pick it up?

Here's the motivation for the question: I'm using Ubuntu 12.04 LTS 2 with the Unity desktop. In my .bashrc file, I append several directories to my PATH variable and define a few environment ...
0
votes
0answers
95 views

C++ running inefficiently in Bash

I have a query regarding bash. I have been running some of my own C++ programs in conjunction with commercial programs and controlling their interaction (via input and output files) through Bash ...
0
votes
1answer
91 views

Environmental variables in login shells and interactive shells

I'm sort of confused of login shells and interactive shells. If I run ssh my_remote_server 'echo $HOME' I can get /home/shawk But when I run ssh my_remote_server 'echo $ANOTHER_VAR' I got a ...
0
votes
1answer
3k views

How to start a service at boot time in ubuntu 12.04, run as a different user?

I have a server ClueReleaseManager which I have installed on a Ubuntu 12.04 system from a separate user (named pypi), and I want to be able to start this server at startup. I already have tried to ...
1
vote
1answer
90 views

Alias stopped working after SSHing into Ubuntu machine

I am facing a problem with Ubuntu. Bash aliases like ll are not working if I am logging to my system from SSH. It works fine after writing bash as a command in the shell. It used to work. What ...
4
votes
4answers
465 views

List of all the users that logged in using GUI or Command Line

I need to calculate the total time that a specific user stay logged in per day. And stop user using the computer more than the time allowed by shutting down the system. uptime cannot be used since ...
1
vote
1answer
85 views

Stream the contents of a text file that is being continuously written to.

So I have a python script which is executed by cron job on a nightly basis to capture data on my data server (Ubuntu 12.04 LTS), this data is being written to a text file. Is there a command to stream ...
0
votes
0answers
205 views

Force apt-get update to return success

I'm working with a system that invokes apt-get update from a Ruby Capistrano recipe. Capistrano cares (apparently) about the return code of the shell commands it executes. apt-get update is running ...
2
votes
2answers
374 views

Rename files inside directory on the fly

I've set up dropbox on my headless 12.04 server machine, it's synced properly and I have it setup so that I can email photos using sendtodropbox.com app. These all sync in to the dropbox folder ...