Debian :: Execute Command Mactime In Order To Control Changes Made To The File System?

Apr 23, 2011

I am trying to execute command mactime in order to control changes made to the file system, but I am getting an error. I am running the shell as root, and it is the first time I run the command in this system - Debian Squeeze up to date. The I/O is as follows:

# mactime 3/1/2011
cannot exec /bin/date: No such file or directory
cannot exec /bin/hostname: No such file or directory
cannot exec /bin/uname -n: No such file or directory
Cannot open /var/cache/tct/data/Amnesiac/body: No such file or directory

The first three lines of output are the ones that are worrying at the moment; I am not concerned with the last. Although error messages suggest the programs date, hostname and uname do not exist in /bin directory, they are available as shown by

[Code]...

View 3 Replies


ADVERTISEMENT

Debian Programming :: Execute System Command Using Qt

Feb 19, 2014

I was writing code to execute system command, using GDM3 an logged in as root (just commented line #auth required

pam_succeed_if.so user != root quiet_success , in /etc/pam.d/gdm3).

When i execute:

Code: Select allvoid criarWindowsDialog::on_pushButton_2_clicked() {
    ui->commandTextEdit->append("Processo iniciado ...");
    QProcess processo;
    QString comando;
    QStringList args;
    QString fullCommand;
    QString stdOut;
    QString stdError;

[CODE]..

View 0 Replies View Related

Software :: How To Control File Order In Rsync

Mar 30, 2011

I am looking for a way to control the order in which files (or more specifically, certain subtrees) are updated for a very large rsync update done daily. There is a finite time frame and finite bandwidth to do these updates, and they usually do NOT complete. I want to control the order so that more important files are copied earlier.

What I have been doing is breaking up the rsync runs into a few steps where the first step is a very limited set of subtrees using --include and/or --exclude, and each step thereafter is increasing the amount, until the last step is the whole tree to be updated. This is not working because the time it takes to transfer the file list is large (varying from 10 minutes to 40 minutes depending on step). I really need to get this back down to doing a single rsync run to reduce that wasted time.

I cannot ultimately split things because there are a lot of hardlinks that need to be retained (or else the destination space and bandwidth would be exceeded).

I was looking at rsync's batch mode. My thought was if I could get a list of what needs to be updated, I could then sort that list and do just 1 more rsync run to do the updates in the order I want. But it turns out the batch mode file is in some cryptic binary format. I really have no idea if that could have worked.

The order selection is not simply based on the names in the top directory, so I cannot simply just list those in the preferred order on the command line (otherwise, yes, that would control the order). If I do list directory names from various depths, that list gets flattened into the destination directory, which would not work to replicate the whole tree exactly.

View 6 Replies View Related

Debian Installation :: Alterations Have Been Made To System?

Jul 16, 2010

Greetings to all from a 60-year-old computer hobbyist and Linux rookie making his first post here. Yesterday I completed a successful installation of Debian 5, lenny, and right now I want to learn what alterations or modifications have been made to my system. I have no complaint about anything at all, I just want to become prepared for any problems I might encounter later on.

1) At one point near the end of my Debian installation, I was asked whether the installer could add something into memory and I (hesitantly) let it do so without knowing what was actually being done. I have a multi-boot system with four versions of Windows installed prior to Debian ... and now my Windows 98 is able to see and access my third drive, a SATA.

Question: How did installing Debian make it possible for my Windows 98 OS to now see and access my SATA hard drive? It is my assumption Debian's installer has somewhere placed one or more drivers my BIOS/DOS now passes along at system startup. How can I make a backup of whatever Debian's installer has done there?

2) After installing Debian and my Windows 98 had begun seeing my SATA drive, I had to eventually re-install Windows 98 because the drive letter for its partition had been changed by the insertion of the SATA drive. At that same time, and while just leaving Windows 98 alone for a while, I had used NeoSmart's EasyBCD to add Debian to Windows 7's BCD ... but then my re-installation of Windows 98 over-wrote that and Windows 7's "startup repair" could never again make its own BCD work. After that, however, and after getting XP's "boot.ini" (including 98 and 2k) working again, a re-installation of Debian resulted in GRUB making a startup menu that now includes *all* systems.

Question: Why or how can/did GRUB find Windows 7 and add it in when Windows 7's "startup repair" could not make a working BCD (or could not make a BCD work) on its own? I have more questions ahead, but like I said: For now I just want to know what I have going on here so I can prepare for any problems I might encounter later. I have a lot of time invested in finally getting this multi-boot system running perfectly with Debian as its default OS and I do not want to have to go back to the beginning and do it all over again because something broke and I had no idea how to fix it!

View 10 Replies View Related

Ubuntu :: Execute System Command With Perl?

Jun 13, 2011

i want to execute system command with perlm but it gives me error.

command is wmic client. here it is

#!/usr/bin/perl
open (EP, "/home/user/Templates/domainpc.log");
while (<EP>) {
chomp;

[Code]....

View 1 Replies View Related

General :: Execute A Command Whenever A File Changes?

Aug 27, 2010

I want a quick and simple way to execute a command whenever a file changes. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with that file. Currently, I'm using this: while read; do ./myfile.py ; done And then I need to go to that terminal and press Enter, whenever I save that file on my editor. What I want is something like this: while sleep_until_file_has_changed myfile.py ; do ./myfile.py ; done

Or any other solution as easy as that. BTW: I'm using Vim, and I know I can add an autocommand to run something on BufWrite, but this is not the kind of solution I want now. Update: I want something simple, discardable if possible. What's more, I want something to run in a terminal because I want to see the program output (I want to see error messages).

View 7 Replies View Related

SUSE :: Automate Execute Command, Reboot And Execute Command?

Dec 1, 2008

Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually

View 5 Replies View Related

Programming :: Handle Own Made Include Files In Order To Compile Program In SUSE 11.3?

May 1, 2011

I have made two source files named as sum.c and average.cI have included sum.c in average.c
both files in Documents directory.when i compile average.ot followingerror"average.c:4:22: fatal error: sum.c: No such file or directorycompilation terminated.How to solve this issue?I have tried to copy sum.c to usrinclude folder but unable to copy

View 8 Replies View Related

Debian :: Save An Amendment That Have Made To The /etc/fstab File?

Mar 2, 2010

how do I save an amendment that I have made to the /etc/fstab file?

View 6 Replies View Related

General :: Use Sort Command For Its Ascending Order And Descending Order?

Aug 18, 2010

in my text file of 5 columns 2 column is in DDMMYYYY format. (ie DATE OF BIRTH). how to use sort command for its ascending order and descending order.

Is the same can be use for the date format YYYYMMDD ?

View 3 Replies View Related

General :: Setup A System To Allow Normal Users To Execute A Command Without Using Sudo?

Jan 5, 2011

I am trying to setup a system to allow normal users to execute a command without using sudo. Is this possible?

View 6 Replies View Related

General :: Command To Compile And Execute Fortran Program On System Machine?

Apr 8, 2010

Command to compile n execute a Fortran program on a Linux machine

View 6 Replies View Related

Debian :: How To Run Execute Command In Terminal

May 4, 2010

i have one executable file (filename : "tet"). i can run this command in other linux os like: "fedora, cent os" using command "./tet", and it's working fine. but this command not working in debian. i don't know how to execute this file.

1. i have tried with 755 and 777 permission
2. i have tried "home/fullpath/tet"
3. i have tried "/tet"
4. i have tried "./home/fullpath/tet"

but above all commands are failed. to run this execute file

View 10 Replies View Related

CentOS 5 :: Search A Text File For The Existence Of Certain Strings And Execute A Command If They Exist, Something Along The Lines?

Feb 23, 2010

This should be simple but I can't seem to find what I am looking for.I want to search a text file for the existence of certain strings and execute a command if they exist, something along the lines of:

if <string> exists
command
or

if <any member of this list exists>
command

I know how to manually search a file with grep, cat, etc., but the "if this exists" part eludes me.

View 7 Replies View Related

Debian :: Monitor Running Process And Execute A Command When Change?

Jan 31, 2010

I want to monitor the process running and execute a command if some new process start. For example send a mail if any new process start.

View 1 Replies View Related

Programming :: System Administrator Wants To Change The Privilege* Only To Users 1, 2 And 3 To Execute The File /bin/xxx?

May 1, 2010

due to an exercise in Operating Systems I have to do the following: There are 6 users, user1, user2 ... user6 with home directories /users/user1 ... users/user6. User1 to user3 belong to group1, user4 to user6 belong to group2. The System Administrator wants to change the privilege* only to users 1, 2 and 3 to execute the file /bin/xxx. Which are the commands he has to type in order to achieve the previous?*I'm not sure if this is the right translation.What I have come till now is: Code: $ chgrp group1 <name_of_file> but it seems too simple to be right.

View 1 Replies View Related

Debian Hardware :: System Freezes And Requires A Reboot In Order To Restore Connectivity

Nov 26, 2015

I have a home server running Debian Wheezy ( 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u6 x86_64 GNU/Linux). I have a Realtek RTL8111/8168B NIC and an Intel 82574L. I saw while searching Google that both cards have this issue. I'm currently using the Realtek card for LAN connectivity. If I try to tranfer large files via SAMBA or have any kind of load on the NIC, my system freezes and requires a reboot in order to restore connectivity. The error message from kern.log is:

Nov 26 02:41:53 golgotha kernel: [ 5178.413329] AMD-Vi: Event logged [IO_PAGE_FAULT device=0a:00.0 domain=0x0021 address=0x0000000000003000 flags=0x0050]
Nov 26 02:42:04 golgotha kernel: [ 5188.800088] ------------[ cut here ]------------
Nov 26 02:42:04 golgotha kernel: [ 5188.800100] WARNING: at /build/linux-Tvajqd/linux-3.2.68/net/sched/sch_generic.c:256 dev_watchdog+0xf2/0x151()

[code]....

Everything runs fine until I try to do a large file tranfer or have multiple users connected.

lspci returns:

09:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 09)

Also, I've rolled the driver back to rtl_nic/rtl8168f-1.fw and currently have that installed, but the error still occurs.

View 5 Replies View Related

OpenSUSE :: Control Load Order In KDE When Booting?

Feb 20, 2010

How do I control load order in KDE when booting? I would like to load networkmanager 1st and some widget like "remember the milk" last in order. I have a conflict between two ("Remember the milk" is bad coded - but only remote-syncing ToDo widget that I know). When RtM loads, if network is not ready, authentication fails. Then only way to connect it is to kill widget and place it again. whatever the reason, how do I control load order of apps/widgets in KDE?

View 1 Replies View Related

Hardware :: How To Control The Driver Order Be Loaded

Apr 4, 2011

How to control the driver order be loaded by linux.

For example: I have two ethernet card is A and B. Sometimes A be loaded first sometimes another. How to control A card be load first in every times?

View 5 Replies View Related

Ubuntu Installation :: Restore System To 10.10 - Using A System Backup Made With REMASTERSYS - Grub Error 15

May 2, 2011

I am trying to restore my system to Ubuntu 10.10, using a system backup made with REMASTERSYS. When I reboot, I get the message: GRUB error:15 I found many threads discussing this issue, most notably here: [URL]

[Code]....

View 7 Replies View Related

Debian :: *.desktop File To Make Execute Start.sh?

Dec 17, 2010

Can i make a .desktop file taht it executes autostart.sh script or any other script?
like xmonad.desktop od dwm.desktop?so that when gdm or any other gui login manager loads autostart apps in xmonad?

View 4 Replies View Related

Debian :: Use Screen To Execute A File With A Certain Session Name Instead Of Just Numbers?

Feb 11, 2011

I'd like to use screen to execute a file with a certain session name instead of just numbers... or at least have a more permanent name, I'd like to be able to use it all in one command though. So I can put it into a script.Also: is there a way I can remove or change what comes up at the debian login screen so instead of debain 5.0 I can make it say something else? Also when I login the message that comes up is a little annoying, is there a way I could remove or change that too?

View 7 Replies View Related

Debian Multimedia :: Can't Run Mojosetup - Unable To Execute SH File

Dec 7, 2015

I'm not so expert using Debian (3.2.68), especially when it comes to install stuff... I tried to execute for the first time a *.sh 451mb file, but it displayed that:

Code: Select allroot@Poulpe:/home/ambroise# sh gog_hatoful_boyfriend_2.0.0.2.sh
Verifying archive integrity... All good.
Uncompressing Hatoful Boyfriend (GOG.com) 100%
Collecting info for this system...
Operating system: linyx
CPU Arch: x86_64
trying mojosetup in bin/linux/x86_64
USING

PANIC
    Initial setup failed. Cannot continue.

Error: Couldn't run mojosetup

It seems that mojosetup is an open software included for all recent GOG games, but maybe it can't run on Debian ? Or could it be more a directory issue ?

View 4 Replies View Related

Debian Programming :: Script To Execute String From Text File

Sep 24, 2014

I am having trouble writing a script that monitors a text file. When the file contains number 1 (or any other string that is not a command) it does nothing, but when it is something different from 1, it executes that command.

So, there are 2 files: monitor.mon - this is the file that will be checked constanlty; and test.sh - the script that does the job. The monitor.mon file will have its content modified by php. This means a web page will have a form where I input commands and writes does commands in the file. Test.sh will watch when the file's content changes from character 1 to a command, execute that command and write back a 1 so it will not execute it more times.

I tried combining while and if but with no success. Tried reading the file with cat and grep -e but it doesn't seem to recognize when content changes.

View 4 Replies View Related

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related

Debian :: File Manager Full Control?

Aug 22, 2011

I'm using the default GNOME file manager. But as a user I don't have any privileges to move files to/from the user folders to the system. I elevated my user to admin privileges, but this has no effect; I can't do any file management in the system area.

I can use the 'root terminal', but it would be much easier to use a GUI file manager--even drag 'n drop.How do I get the file manager to open up? I guessed one way to do this is to log in as 'Root' instead of user. But login won't allow an 'other' login when I try to use 'root' as a username. Is this the wrong approach? Dave

View 7 Replies View Related

OpenSUSE :: .jar File Runs Fine In Command Line But Not From File System?

May 3, 2010

My .jar file needs and uses some files in the same directory it's in (everything, including the jar was unzipped into said directory). It runs perfectly when I do java -jar file.jar in the command line, but there's trouble when I double-click the file when running from the file system manager. I've tried a custom command under properties ie java -jar, but the problem is that the .jar file doesn't seem to be able to use any of the files in the same directory. When running, the jar can't find any of the files that it needs.

View 5 Replies View Related

Fedora :: Catalyst Control Center - No Option To Execute Amdcccle As Root

Apr 25, 2011

I need to invoke the catalyst control panel from Application->System Tools with administrator rights (so i can setup my dual monitor, which for now is in clone mode ) but there is no option to execute amdcccle as root.

I tried to call it from the terminal as amdxdg-su -c amdcccle but with no success. It asks for password and then does nothing.

So i m stuck.i cant setup the screens properly till i can access the CCC with root rights, how can i achive that?

I m using fedora 14 and catalyst ver. 11.2

View 2 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

General :: Retrieve The File Which Got Removed From File System Using Rm Command?

Nov 23, 2010

As in windows all the delted items will got to RecycleBin is there any such thing in linux.

(Or)

Can we retrive the file which got removed from file system(using rm command)

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved