Sponsored Content
Full Discussion: Bash Scripting program
Homework and Emergencies Homework & Coursework Questions Bash Scripting program Post 303026166 by rami-ali on Wednesday 21st of November 2018 05:44:29 AM
Old 11-21-2018
Bash Scripting program

Code:
#! /bin/bash

# program to creat a backup copy for every deleted file or dierctores




mv -t  /home/$USER/.local/share/Trash/files $1


rsync -a /home/$USER/.local/share/Trash/files /usr/share/trash


didn't work
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell scripting Program

Hi all, I am new to this forums. I need one help from urs. My requirement is to fetch the records from the log file for every 15 mins and write the datas to the new file... The log file which is located in the 21/09/2008 directory. In 21/09/2008 directory, number of log files are... (1 Reply)
Discussion started by: balaji23_d
1 Replies

2. Shell Programming and Scripting

Shell scripting Program

Hi all, I am new comers to this forums. I need one help from urs. My requirement is to fetch the records from the log file for every 15 mins and write the datas to the new file... The log file which is located in the 21/09/2008 directory. In 21/09/2008 directory, number of log files... (1 Reply)
Discussion started by: balaji23_d
1 Replies

3. Shell Programming and Scripting

Grammatical error in scripting program.

Hi, I have one script program (lod0361.job) ,where i am using errorlog() function with some arguments like below. call errorlog ("---- unload to \"TESTNAME.out\" select * from TESTNAME") but when i run the lod0361.job then i am getting below errors. call errorlog ("---- load from... (1 Reply)
Discussion started by: deepakagrawal13
1 Replies

4. Shell Programming and Scripting

PROGRAM BASH

Hola tengo que hacer un programa en Bash, necesito ayuda porque no me sale y llevo bastante tiempo con esto!! Los cinco directorios que más ocupan, ordenados según tamaño. Para medir el tamaño de cada directorio no debe incluirse el tamaño de sus subdirectorios. Los diez archivos normales que más... (1 Reply)
Discussion started by: danihj
1 Replies

5. Shell Programming and Scripting

Program Bash VERY URGENT

Hello I have to do a program in Bash, need help because it does not go out for me and go enough time with this!! Five directories(boards of directors) that more occupy, arranged according to size. To measure the size of every directory(board of directors) there must not be included the size... (1 Reply)
Discussion started by: danihj
1 Replies

6. Shell Programming and Scripting

scripting an interactive program session

Hello, I'm looking to script the basic instant messaging program we have in my company, it's called "oi", it's working as follow: # oi $user then we have to launch it... after finding the system of the user it's asking for the message... then on a new line we have to hit ctrl+d I... (2 Replies)
Discussion started by: nomadvisuals
2 Replies

7. Shell Programming and Scripting

Help Scripting: Sync Photos Program

So right now I am trying to sync an iPhoto Library file from multiple computers. The goal being that it takes the most recently updated file (depending on which computer it was). Currently I am using Google Drive to essentially sync the newest library, however, I was curious to see if this was... (1 Reply)
Discussion started by: abudis
1 Replies

8. Programming

Question regarding Bash program

Hello All, I am trying to write a small bash script to make my life easier for an analysis. I have multiple folders and inside them are 10 output files with an extension .pdbqt What I am trying to do is to read the folder content and then make a PyMol (.pml) file to load the molecules and then... (11 Replies)
Discussion started by: biochemist
11 Replies

9. UNIX for Dummies Questions & Answers

Kill a program from bash

to kill a program in bash, for instance 'mousepad' I use kill $(pidof mousepad); or pkill mousepad But it only works if we use another bash window; If it is started from the same bash, that does not work: #mousepad;kill $(pidof mousepad); In this case, it looks like mousepad hangs... (7 Replies)
Discussion started by: arpagon
7 Replies

10. Shell Programming and Scripting

To check if the JAVA Program is successfully executed in sh shell scripting

Hi , I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with... (1 Reply)
Discussion started by: preema
1 Replies
RESTORE-TRASH(1)					      General Commands Manual						  RESTORE-TRASH(1)

NAME
restore-trash - Restore for Command line trash utility. SYNOPSIS
restore-trash DESCRIPTION
Use for restore a trashed file or directory, in the original path. This command is a part of trash-cli package that provides a command line interface trashcan utility compliant with the FreeDesktop.org Trash Specification. It remembers the name, original path, deletion date, and permissions of each trashed file. EXAMPLES
$ restore-trash 0 2007-08-30 12:36:00 /home/andrea/foo 1 2007-08-30 12:39:41 /home/andrea/bar 2 2007-08-30 12:39:41 /home/andrea/bar2 3 2007-08-30 12:39:41 /home/andrea/foo2 4 2007-08-30 12:39:41 /home/andrea/foo What file to restore [0..4]: 4 $ ls foo foo BUGS
Report bugs to http://code.google.com/p/trash-cli/issues AUTHORS
Trash was written by Andrea Francia <andreafrancia@users.sourceforge.net> and Einar Orn Olason <eoo@hi.is>. This manual page was written by Steve Stalcup <vorian@ubuntu.com>. Changes made by Massimo Cavalleri <submax@tiscalinet.it>. SEE ALSO
trash-put(1), trash-list(1), trash-empty(1), and the FreeDesktop.org Trash Specification at http://www.ramendik.ru/docs/trashspec.html. Both are released under the GNU General Public License, version 2 or later. RESTORE-TRASH(1)
All times are GMT -4. The time now is 07:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy