General :: Auto Start Shell Script On Other Actions?
Aug 6, 2011I have a particular script xxxx in folder yyyy. How can i start/execute xxxx whenever i open or cd into yyyy.
View 3 RepliesI have a particular script xxxx in folder yyyy. How can i start/execute xxxx whenever i open or cd into yyyy.
View 3 RepliesI've been using Trillian under Windoz, for one reason only - the email message-handling is amazing. Here are the features that impressed me the most with Trillian:
Check multiple email accounts + notifications (but that exists in many other clients)
Preview subject line + message body teaser (this exists to some extent in Adium)
Preview the above not only upon email-check, but in the client window itself or as tooltips when hovering over email-account name Email ACTIONS - right-clicking on individual messages, can perform common tasks (archive, delete, view, mark as read).
The actions available change for different protocols AUTO LOGIN-when double-clicking the account a browser window will open and automatically log me into the account That last feature is the most important one - at the moment, Pidgin/Adium/Empathy just send me to the email-account's homepage. I have (too) many email accounts, and having to enter login details to each is a pain. With Trillian, I could d-click an account, see my inbox, logout and then d-click another account - and be logged into that one... easy peasy.
Now, this is not a commercial for Trillian... really not. I just haven't found any other client that can do these things, nor have I found plugins for Empathy/Pidgin that enable this. I've been using Pidgin for now, cos it doesn't give any trouble with Skype integration (already tried the skype4empathyandpidgin, didn't work out) and has nice (not amazing) integration to the messaging menu.
I need help creating a script that makes a log file in wich to save information about every user that uses the ftp command (information like username and date) and the server to wich he is trying to connect.
View 2 Replies View RelatedEvery time I reboot my linux machine I have to set up 5 or 6 terminals and Im trying to find a way to do this automatically. Bind a script to a shortcut or on startup that starts several terminals (extra point if theyre tabbed) and have each terminal ssh to different servers.
View 3 Replies View Relatedmaybe not so simple as what the subject saysBackgroun storyI have a couple of encrypted hard drives created with cryptsetup
I have the following lines in my /etc/crypttab
data1 UUID=someUUID none noauto
data2 UUID=someotherUUID none noauto
[code]...
Can you run an application automatically when you load linux? In this case it would be VMPlayer?
View 4 Replies View RelatedI want to start a virtual machine on another window panel, but I'm not sure what the command for this would be.
I have:
virtualbox --startvm myvin &
in my autostart.sh.
I am using Fedora and trying to auto run a script soon after the unit boots to desktop. I found many suggestions and finally decided to use the Sessions->Startup Programs option (under System->Preferences->Personal->Sessions menu). I added my script in the Startup Programs with the command 'sh myscript.sh'. Now I have two questions here:1. When I use the command 'gnome-terminal -e myscript.sh', I get 'There was an error creating the child process for this terminal' message after logging into the desktop. Can any one tell if I am missing something here?2. Even if I use sh instead of gnome-terminal, I still want to see the script executing. In other words, my script has certain echo statements indicating the flow of the script. But I don't see any shell opening up with these echo statements showing up, after the unit boots to desktop. But the script was still executed with no problem
View 1 Replies View RelatedI just installed TuxGuitar - very cool - and to get the sound to work I had to install Timidity++ as well. Before I start TuxGuitar I have to execute:timidity -iA -Osin a terminal window first, which is kind of a pain to do every time I run TuxGuitar.How do I get this line to execute on startup such that timidity is running when I start up? I tried adding that line to rc.local
View 13 Replies View RelatedI need to make my 1st ever script to backup VMware workstation VMs to a folder which is then backed up offsite. Here is what I have so far (will be croned):
Code:
sudo vmrun -T ws stop "/home/gareth/vmware/NagiosWeb/NagiosWeb.vmx" soft
sudo vmrun -T ws stop "/home/gareth/vmware/UbuntuBackup/UbuntuBackup.vmx" soft
**copy or rsync to /home/gareth/vmware-backup/ dir**
[code]....
1. Just to confirm, I need to place the above in a file with #!/bin/bash at the top and make it executable.
2. How do I know when the VMs have safely shut down so I can start the copy? I guess I can either a. wait a specified amount of time b. run some sort of if statement to confirm they are off.
3. How do I use Rsync or cp to copy to the backup folder?
4. How will I know the copy is complete so that I can start the VMs again?
I've been trying out Nautilus-actions (Gnome 2.28.4), but have been unable to import most config files from [url].
When I attempt to import an action, it complains:
Quote:
Can't parse file 'convert_flv_to_avi.schemas' as GConf schema description file!
This XML file is not a valid Nautilus-actions config file (missing keys: )
So far, the only one that has worked for me is "Move to custom folder" [url].
I log on to a lot of different servers at work to do some tasks and install new software. However, sometimes I find myself wanting to know what has been done to the computer recently. This usually involves me going through log files and just observing the filesystem for new folders/files (usually in /tmp).
Is there some kind of a master log file which logs all (or nearly all) "activity" on the computer. Even getting a list of most recent command line 'history' from different users would be helpful to see what they did in the last couple hours. I only need to know the big things:
new software installs
important files being changed
new users/groups being made
Am I asking for too much from my system? If this doesn't exist I might just develop a tool to do it. In that case, which files should I be looking at to extract the information I want?
I have an Ubuntu server in which a file is dumped every hour and a new file for the next hour and the process continues. If there is any problem due to which the creation of file stops then empty files are created every minute till the process is killed & started again. I need help to make a shell script to check if the empty files are being created and then kill the process and start it again.It would be a great help if anyone can help me regarding this.
View 9 Replies View RelatedI'm using gnome and I'm trying to add custom actions to the right-click on desktop menu. I've read that this can be done using nautilus-actions, but all the references I've found explain it for older versions of nautilus-actions.
If I create an action (a firefox launcher, for example) and don't add any special conditions for it to show up, it shows when I right-click anything in nautilus, but not on the desktop.
I know it's possible since nautilus-open-terminal shows up on the desktop menu.
Code:
$ aptitude s
sbin/ selinux/ server/ srv/ sys/
This is what happens when I hit TAB. It always showed "show" and "search" actions before... Why directories now?
Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
View 1 Replies View RelatedI code primarily in jQuery/JavaScript, and I'm looking for a text editor for Linux that has auto-indent and auto-outdent (seems to be tough to find that). Any suggestions? I've checked Gedit, Cream, vim, Bluefish.None of them seem to have this feature.
View 2 Replies View RelatedOn my local network, I use my Linux machine running dhcpd and IP masquerade as a gateway to the internet. As it is, the setup works just fine, and I've enabled dhcpd in all runlevels in the services dialog, but for some reason, it still does not automatically start when I boot the machine. If I select it and click "Start", it operates normally, and if I run "services dhcpd start" from a command line, that works too. My only guess is that it's some problem with my config file... it's the same setup I used with previous versions of Fedora without issues, but maybe things have changed?
The contents of /etc/dhcp/dhcpd.conf:
Code:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.8;
option subnet-mask 255.255.255.0;
option domain-name-servers 64.59.176.13, 64.59.176.15, 64.59.177.226;
option ip-forwarding off;
range dynamic-bootp 192.168.1.100 192.168.1.200;
default-lease-time 21600;
max-lease-time 43200; }
I know 10.4 is not final but I am running it and loving it. I am trying to have synergyc start and be working at the logon box of ubuntu 10.4. I can get it to autostart after the user is logged in. But I want it to be working before the user is logged in. how I can do this with 10.4
View 9 Replies View RelatedI'm on Natty, but this was a problem for me on Maverick as well. Since my mouse is way too fast in Ubuntu even on the slowest settings (a topic for another discussion), I run a shell script at startup to fix this. Of course, the script is only run when I log into my account. Is there a way to have this script run at system start so that it affects all users? I already tried copying my fixmouse.sh script to /usr/share/gdm/autostart/ to no avail. If it's germane to the discussion, here are the contents of fixmouse.h:
Code:
#!/bin/sh
xinput --set-prop 10 "Device Accel Constant Deceleration" 2
xinput --set-prop 10 "Device Accel Velocity Scaling" 1
I have a "time-server". It's sending time to different devices through different ports/protocols. The problem is that it has no operator and that makes some extra difficulties.
Now when i try to start it using terminal Code: Select allsudo ./myprogram works fine and
Code: Select all./myprogram doesn't work.
It is so because without sudo i have no access to ports. As a result If i add my program to System->Preferences->Startup Applications it has the same problem. So i need to start it as root, auto-start, right after auto-login to system but without entering password cause nobody will do it.
Also I need to start ntpd but it also asks password sometimes I've tried googles but it offer a few ways with entering password that isn't suitable for me or writing some scripts/changing system files but with no example I'm afraid to break it all. So is there a way to start Myprogram and NTPD as root with no password entering?
My system is Debian 6.0.10 Squeeze, Kernel 2.6.32-5-686
every time I reboot the box, I have to run:sudo /etc/init.d/vmware startin order to start the vmware support processes.
There are entries in /etc/init.d/rc5.d
lrwxrwxrwx 1 root root 18 2010-06-08 18:08 K08vmware -> /etc/init.d/vmware
lrwxrwxrwx 1 root root 18 2010-06-08 18:08 S19vmware -> /etc/init.d/vmware
I broke PulseAudio accidentally, when I was trying to fix something else. I'm not sure what I did, but PulseAudio no longer starts automatically when I log in. That means I get no sound. I can start the PulseAudio daemon manually by running:
Code:
pulseaudio -D
at the command line, but I also have to go into sound preferences and select the correct hardware (Audigy 2 ZS card) instead of my motherboard's sound device (which is not connected to my speakers) to get sound back. How do I make all that happen automatically?
How do you set PulseAudio to auto-start during boot? Just upgraded ALSA versions, but pulse audio does not appear to be starting at boot time and I have no sound. RT-Kernel-33
View 1 Replies View RelatedI am setting up a streaming audio server. I would like to have Darkice and sc_serv (Shoutcast server) start automagically on boot.
I have set Xubuntu (10.04) to auto login
Both Darkice and sc_serv are command line apps and I would like them to each run in their own terminal window so I can monitor any status messages they produce. For instance sc_serv displays connections disconnections with time connected, and current number of listeners, and I want to see that.
One important note: sc_serv must be up and running before Darkice can be started.
I've created a soft raid w/ 2x 1TB drives by using Disk Utility. (used for mythtv storage, not system, swap or anything else)
If I start the raid array in the Disk Utility mount and everything works as it should, but on reboot the raid array isn't started so I have to go into Disk Utility, start it, then run the mount.
How can I get it to start automatically?
What command can I use to get a research app to auto start under wine?
I have tried:
Code:
wine /directory/app.exe
It does not work
I usually add torrents to transmission through my iPhone. I have Transmission watch the 'Attachments' folder in my Dropbox. I also have Transmission auto add the torrent and delete the torrent file when done. Thing is if I don't have Transmission running when I add the torrent to my dropbox folder. Transmission doesn't start up to download the torrent. Is there a script that can watch for torrent files in my Dropbox folder that I can run in Scheduled Tasks to run every 5 min or so. Also when I have it up and running and I do have auto add on. It auto adds it to transmission but then the popup dialog appears to ask if I just want to download one of the files from the torrent or all 10. Is there a way to bypass this?
View 1 Replies View RelatedI have it set up to start my music player (RBox) and torrent program (Transmission) when I log in. The problem is all my data is set on my 1TB external hard drive, because my internal hard drive only has 80GBs of space. When I start up the programs open but the external hasn't had time to link the file directories which messes screws up my torrents into having to verify every time and my music has to "recalibrate" as it were.
This isn't an issue when I manually open the programs after a minute or so but what my question really comes down to is... Is there a way to delay an automatic startup? Say, run application 3 minutes into boot up?
I have created a RAID 5 array using the built in Disk Utility.This is great and formatted it with ext4, and mounted it.However on reboot in Disk Utility as RAID Array is not running and under state Not running, partially assembled.I have to stop the array then restart it, then mount it before I can access what is on it.Obviously this is not very good as I often have the system shutdown at night to converse energy, and having to do this every time it boots is a pain.Could someone please explain in plain english what I need to go to get my array to start and mount on startup
View 4 Replies View Related