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
GVFS-TRASH(1)							   User Commands						     GVFS-TRASH(1)

NAME
gvfs-trash - Move files or directories to the trash SYNOPSIS
gvfs-trash [OPTION...] [LOCATION...] DESCRIPTION
gvfs-trash sends files or directories to the "Trashcan". This can be a different folder depending on where the file is located, and not all file systems support this concept. In the common case that the file lives inside a users home directory, the trash folder is $XDG_DATA_HOME/Trash. Note that moving files to the trash does not free up space on the file system until the "Trashcan" is emptied. If you are interested in deleting a file irreversibly, see gvfs-rm. Inspecting and emptying the "Trashcan" is normally supported by graphical file managers such as nautilus, but you can also see the trash with the command gvfs-ls trash://. OPTIONS
The following options are understood: -h, --help Prints a short help text and exits. -f, --force Ignore nonexistent and non-deletable files. --empty Empty the trash. EXIT STATUS
On success 0 is returned, a non-zero failure code otherwise. SEE ALSO
ls(1), gvfs-rm(1), Desktop Trash Can specification[1] NOTES
1. Desktop Trash Can specification http://freedesktop.org/wiki/Specifications/trash-spec gvfs GVFS-TRASH(1)
All times are GMT -4. The time now is 09:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy